/ Vijos /

记录详情

Accepted

/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 112ms 16.5 MiB
#2 Accepted 182ms 18.613 MiB
#3 Accepted 231ms 15.871 MiB
#4 Accepted 1475ms 17.008 MiB
#5 Accepted 2038ms 19.332 MiB
#6 Accepted 2525ms 18.602 MiB
#7 Accepted 2762ms 21.699 MiB
#8 Accepted 4195ms 29.73 MiB
#9 Accepted 4209ms 29.762 MiB
#10 Accepted 4305ms 29.965 MiB

信息

递交者
类型
递交
题目
P2049 旧试题
语言
C++
递交时间
2018-10-07 10:51:15
评测时间
2018-10-07 10:51:15
评测机
分数
100
总耗时
22039ms
峰值内存
29.965 MiB