/ Vijos /

记录详情

Accepted

foo.cc: In function 'void solve()':
foo.cc:15:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   15 | if(a>b)swap(a,b);if(a>c)swap(a,c);if(b>c)swap(b,c);
      | ^~
foo.cc:15:18: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   15 | if(a>b)swap(a,b);if(a>c)swap(a,c);if(b>c)swap(b,c);
      |                  ^~
foo.cc:52:18: warning: second operand of conditional expression has no effect [-Wunused-value]
   52 | ret>0?ret:ret+mod;
      |                  ^
foo.cc:52:14: warning: third operand of conditional expression has no effect [-Wunused-value]
   52 | ret>0?ret:ret+mod;
      |           ~~~^~~~
foo.cc:72:1: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   72 | else if(miu[i]==-1)(ret-=(ll)fa[i]*fb[i]%mod*fc[i])%=mod;ret=ret>0?ret:ret+mod;
      | ^~~~
foo.cc:72:58: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   72 | else if(miu[i]==-1)(ret-=(ll)fa[i]*fb[i]%mod*fc[i])%=mod;ret=ret>0?ret:ret+mod;
      |                                                          ^~~
foo.cc: In function 'int main()':
foo.cc:94:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   94 | scanf("%d",&T);for(int z=1;z<=T;z++){solve();clear();}return 0;//拜拜程序~
      | ~~~~~^~~~~~~~~
foo.cc: In function 'void solve()':
foo.cc:14:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   14 | scanf("%d%d%d",&a,&b,&c);lim=max(max(a,b),c);st=clock();
      | ~~~~~^~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 86ms 9.625 MiB
#2 Accepted 117ms 9.867 MiB
#3 Accepted 171ms 9.875 MiB
#4 Accepted 1297ms 12.277 MiB
#5 Accepted 1865ms 13.969 MiB
#6 Accepted 2384ms 15.836 MiB
#7 Accepted 2499ms 17.867 MiB
#8 Accepted 4068ms 26.496 MiB
#9 Accepted 4580ms 27.18 MiB
#10 Accepted 4609ms 27.469 MiB

信息

递交者
类型
递交
题目
P2049 旧试题
语言
C++
递交时间
2022-01-13 18:32:30
评测时间
2022-01-13 19:00:59
评测机
分数
100
总耗时
21680ms
峰值内存
27.469 MiB