/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'void solve()':
/in/foo.cc:15:1: 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:18: 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:18: warning: second operand of conditional expression has no effect [-Wunused-value]
 ret>0?ret:ret+mod;
                  ^
/in/foo.cc:52:14: warning: third operand of conditional expression has no effect [-Wunused-value]
 ret>0?ret:ret+mod;
           ~~~^~~~
/in/foo.cc:72:1: 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:72:58: 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 84ms 9.566 MiB
#2 Accepted 132ms 9.723 MiB
#3 Accepted 177ms 9.789 MiB
#4 Accepted 1600ms 12.164 MiB
#5 Accepted 2305ms 13.805 MiB
#6 Accepted 2882ms 15.645 MiB
#7 Accepted 3431ms 17.586 MiB
#8 Time Exceeded ≥5002ms ≥26.387 MiB
#9 Time Exceeded ≥5000ms ≥26.992 MiB
#10 Time Exceeded ≥5006ms ≥27.094 MiB

信息

递交者
类型
递交
题目
P2049 旧试题
语言
C++
递交时间
2021-05-06 13:22:19
评测时间
2021-05-06 13:22:19
评测机
分数
70
总耗时
≥25624ms
峰值内存
≥27.094 MiB