/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void solve()':
/in/foo.cc:100:23: warning: second operand of conditional expression has no effect [-Wunused-value]
      ret>0?ret:ret+mod;
                       ^
/in/foo.cc:100:19: warning: third operand of conditional expression has no effect [-Wunused-value]
      ret>0?ret:ret+mod;
                ~~~^~~~
/in/foo.cc:117:3: 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;
   ^~~~
/in/foo.cc:117:60: 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;
                                                            ^~~
# 状态 耗时 内存占用
#1 Accepted 92ms 9.605 MiB
#2 Accepted 134ms 10.066 MiB
#3 Accepted 174ms 9.82 MiB
#4 Accepted 1416ms 12.164 MiB
#5 Accepted 2022ms 13.805 MiB
#6 Accepted 2472ms 15.672 MiB
#7 Accepted 2961ms 17.875 MiB
#8 Accepted 4531ms 26.703 MiB
#9 Accepted 4518ms 27.086 MiB
#10 Accepted 4723ms 27.125 MiB

信息

递交者
类型
递交
题目
P2049 旧试题
语言
C++
递交时间
5 年前
评测时间
5 年前
评测机
分数
100
总耗时
23048ms
峰值内存
27.125 MiB