/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void solve()':
/in/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);
      | ^~
/in/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);
      |                  ^~
/in/foo.cc:51:18: warning: second operand of conditional expression has no effect [-Wunused-value]
   51 | ret>0?ret:ret+mod;
      |                  ^
/in/foo.cc:51:14: warning: third operand of conditional expression has no effect [-Wunused-value]
   51 | ret>0?ret:ret+mod;
      |           ~~~^~~~
/in/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;
      | ^~~~
/in/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;
      |                                                          ^~~
# 状态 耗时 内存占用
#1 Accepted 75ms 9.848 MiB
#2 Accepted 118ms 9.992 MiB
#3 Accepted 157ms 10.051 MiB
#4 Accepted 1419ms 12.492 MiB
#5 Accepted 2027ms 14.105 MiB
#6 Accepted 2478ms 16.027 MiB
#7 Accepted 2960ms 18.023 MiB
#8 Accepted 4531ms 26.723 MiB
#9 Accepted 4516ms 27.293 MiB
#10 Accepted 4729ms 27.551 MiB

信息

递交者
类型
递交
题目
P2049 旧试题
语言
C++
递交时间
2026-10-28 22:25:30
评测时间
2026-10-28 22:25:30
评测机
分数
100
总耗时
23015ms
峰值内存
27.551 MiB