/ Vijos /

记录详情

Accepted

/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 71ms 9.719 MiB
#2 Accepted 111ms 9.867 MiB
#3 Accepted 149ms 9.93 MiB
#4 Accepted 1353ms 12.309 MiB
#5 Accepted 1934ms 13.969 MiB
#6 Accepted 2383ms 15.875 MiB
#7 Accepted 2832ms 17.762 MiB
#8 Accepted 4309ms 26.617 MiB
#9 Accepted 4317ms 27.195 MiB
#10 Accepted 4569ms 27.367 MiB

信息

递交者
类型
递交
题目
P2049 旧试题
语言
C++
递交时间
2021-07-19 15:54:49
评测时间
2021-07-19 15:55:04
评测机
分数
100
总耗时
22031ms
峰值内存
27.367 MiB