/ 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 105ms 9.719 MiB
#2 Accepted 233ms 9.773 MiB
#3 Accepted 254ms 9.918 MiB
#4 Accepted 1393ms 12.363 MiB
#5 Accepted 1975ms 13.945 MiB
#6 Accepted 2322ms 15.855 MiB
#7 Accepted 2702ms 17.832 MiB
#8 Accepted 3890ms 26.582 MiB
#9 Accepted 3647ms 27.086 MiB
#10 Accepted 3818ms 27.375 MiB

信息

递交者
类型
递交
题目
P2049 旧试题
语言
C++
递交时间
2023-08-02 09:25:12
评测时间
2023-08-02 09:25:12
评测机
分数
100
总耗时
20344ms
峰值内存
27.375 MiB