/ Vijos /

记录详情

Accepted

foo.cc: In function 'void solve()':
foo.cc:14:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   14 | 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 were guarded by the 'if'
   14 | 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]
   51 | ret>0?ret:ret+mod;
      |                  ^
foo.cc:51:14: warning: third operand of conditional expression has no effect [-Wunused-value]
   51 | ret>0?ret:ret+mod;
      |           ~~~^~~~
foo.cc:71:1: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   71 | 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 were guarded by the 'else'
   71 | else if(miu[i]==-1)(ret-=(ll)fa[i]*fb[i]%mod*fc[i])%=mod;ret=ret>0?ret:ret+mod;
      |                                                          ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 175ms 9.703 MiB
#2 Accepted 222ms 9.773 MiB
#3 Accepted 224ms 9.91 MiB
#4 Accepted 1515ms 12.305 MiB
#5 Accepted 2066ms 13.984 MiB
#6 Accepted 2397ms 15.879 MiB
#7 Accepted 2705ms 17.895 MiB
#8 Accepted 3768ms 26.523 MiB
#9 Accepted 3720ms 27.168 MiB
#10 Accepted 4165ms 27.375 MiB

信息

递交者
类型
递交
题目
P2049 旧试题
语言
C++
递交时间
2023-07-12 17:35:58
评测时间
2023-07-12 17:35:58
评测机
分数
100
总耗时
20960ms
峰值内存
27.375 MiB