/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'void solve()':
/in/foo.cc:15:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(a>b)swap(a,b);if(a>c)swap(a,c);if(b>c)swap(b,c);
     ^~
/in/foo.cc:15:22: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if(a>b)swap(a,b);if(a>c)swap(a,c);if(b>c)swap(b,c);
                      ^~
/in/foo.cc:52:38: warning: second operand of conditional expression has no effect [-Wunused-value]
                     ret>0?ret:ret+mod;
                                      ^
/in/foo.cc:52:34: warning: third operand of conditional expression has no effect [-Wunused-value]
                     ret>0?ret:ret+mod;
                               ~~~^~~~
/in/foo.cc:71:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
         else if(miu[i]==-1)(ret-=(ll)fa[i]*fb[i]%mod*fc[i])%=mod;ret=ret>0?ret:ret+mod;
         ^~~~
/in/foo.cc:71:66: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
         else if(miu[i]==-1)(ret-=(ll)fa[i]*fb[i]%mod*fc[i])%=mod;ret=ret>0?ret:ret+mod;
                                                                  ^~~
# 状态 耗时 内存占用
#1 Accepted 88ms 15.0 MiB
#2 Accepted 141ms 16.914 MiB
#3 Accepted 188ms 16.617 MiB
#4 Accepted 1743ms 16.496 MiB
#5 Accepted 2518ms 17.555 MiB
#6 Accepted 3118ms 22.742 MiB
#7 Accepted 3721ms 21.773 MiB
#8 Time Exceeded ≥5000ms ≥29.59 MiB
#9 Time Exceeded ≥5000ms ≥30.086 MiB
#10 Time Exceeded ≥5005ms ≥29.848 MiB

信息

递交者
类型
递交
题目
P2049 旧试题
语言
C++
递交时间
2020-04-30 17:56:54
评测时间
2020-04-30 17:56:54
评测机
分数
70
总耗时
≥26526ms
峰值内存
≥30.086 MiB