/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'void solve()':
foo.cc:14:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(a>b)swap(a,b);if(a>c)swap(a,c);if(b>c)swap(b,c);
     ^~
foo.cc:14:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     if(a>b)swap(a,b);if(a>c)swap(a,c);if(b>c)swap(b,c);
                      ^~
foo.cc:51:38: warning: second operand of conditional expression has no effect [-Wunused-value]
                     ret>0?ret:ret+mod;
                                      ^
foo.cc:51:34: warning: third operand of conditional expression has no effect [-Wunused-value]
                     ret>0?ret:ret+mod;
                               ~~~^~~~
foo.cc:70:9: 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;
         ^~~~
foo.cc:70:66: note: ...this statement, but the latter is misleadingly indented as if it were 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;
                                                                  ^~~
foo.cc: In function 'int main()':
foo.cc:92:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&T);for(int z=1;z<=T;z++){solve();clear();}return 0;//拜拜程序~
     ~~~~~^~~~~~~~~
foo.cc: In function 'void solve()':
foo.cc:13:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d%d",&a,&b,&c);lim=max(max(a,b),c);st=clock();
     ~~~~~^~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 97ms 9.727 MiB
#2 Accepted 155ms 9.855 MiB
#3 Accepted 206ms 9.949 MiB
#4 Accepted 1901ms 12.379 MiB
#5 Accepted 2755ms 14.008 MiB
#6 Accepted 3348ms 15.91 MiB
#7 Accepted 4012ms 17.906 MiB
#8 Time Exceeded ≥5325ms ≥26.531 MiB
#9 Time Exceeded ≥5350ms ≥27.156 MiB
#10 Time Exceeded ≥5122ms ≥27.383 MiB

信息

递交者
类型
递交
题目
P2049 旧试题
语言
C++
递交时间
2021-07-18 19:45:33
评测时间
2021-07-18 19:45:33
评测机
分数
70
总耗时
≥28275ms
峰值内存
≥27.383 MiB