/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'void solve()':
foo.cc:15:1: 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:15:18: 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:52:18: warning: second operand of conditional expression has no effect [-Wunused-value]
 ret>0?ret:ret+mod;
                  ^
foo.cc:52:14: warning: third operand of conditional expression has no effect [-Wunused-value]
 ret>0?ret:ret+mod;
           ~~~^~~~
foo.cc:72:1: 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:72:58: 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:94:6: 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:14:6: 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();
 ~~~~~^~~~~~~~~~~~~~~~~~~

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
正在同步测试数据,请稍后
{"receive":"2020-08-05T11:13:11.825Z","handle":"2020-08-05T11:13:11.834Z","cache_start":"2020-08-05T11:13:11.923Z","read_cases":"2020-08-05T11:13:12.512Z","judge":"2020-08-05T11:13:12.518Z","done":"2020-08-05T11:13:42.329Z"}
# 状态 耗时 内存占用
#1 Accepted 95ms 9.566 MiB
#2 Accepted 133ms 9.73 MiB
#3 Accepted 179ms 9.824 MiB
#4 Accepted 1623ms 12.168 MiB
#5 Accepted 2295ms 13.816 MiB
#6 Accepted 2828ms 15.707 MiB
#7 Accepted 3361ms 17.59 MiB
#8 Time Exceeded ≥5071ms ≥26.426 MiB
#9 Time Exceeded ≥5064ms ≥26.996 MiB
#10 Time Exceeded ≥5205ms ≥27.152 MiB

信息

递交者
类型
递交
题目
P2049 旧试题
语言
C++
递交时间
2020-08-05 19:13:11
评测时间
2020-08-05 19:13:11
评测机
分数
70
总耗时
≥25859ms
峰值内存
≥27.152 MiB