/ Vijos /

记录详情

Accepted

foo.cc: In function 'void solve()':
foo.cc:14: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);
 ^~
foo.cc:14: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);
                  ^~
foo.cc:51:18: warning: second operand of conditional expression has no effect [-Wunused-value]
 ret>0?ret:ret+mod;
                  ^
foo.cc:51:14: warning: third operand of conditional expression has no effect [-Wunused-value]
 ret>0?ret:ret+mod;
           ~~~^~~~
foo.cc:71: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;
 ^~~~
foo.cc:71: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;
                                                          ^~~

自豪地采用[jd5](https://github.com/masnn/jd5)进行评测
# 状态 耗时 内存占用
#1 Accepted 90ms 15.492 MiB
#2 Accepted 148ms 15.043 MiB
#3 Accepted 182ms 15.129 MiB
#4 Accepted 1500ms 16.848 MiB
#5 Accepted 2126ms 17.578 MiB
#6 Accepted 2704ms 18.668 MiB
#7 Accepted 2991ms 23.488 MiB
#8 Accepted 4553ms 29.617 MiB
#9 Accepted 4555ms 29.875 MiB
#10 Accepted 4954ms 29.926 MiB

信息

递交者
类型
递交
题目
P2049 旧试题
语言
C++
递交时间
2019-11-28 20:22:40
评测时间
2019-11-28 20:22:40
评测机
分数
100
总耗时
23803ms
峰值内存
29.926 MiB