/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'void dfs()':
foo.cc:23:20: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
    if(i%5) m+=(1<<i-1);
                   ~^~
foo.cc:24:23: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
    if(i%5!=4) m+=(1<<i+1);
                      ~^~
foo.cc: In function 'int main()':
foo.cc:42:7: warning: unused variable 'ant' [-Wunused-variable]
   int ant=-1;
       ^~~
foo.cc:38:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥616ms ≥129.273 MiB
#2 Time Exceeded ≥617ms ≥129.277 MiB
#3 Wrong Answer Read 06661, expect 0. 147ms 130.5 MiB
#4 Wrong Answer Read 6-166-1-1665-1-1..., expect 6. 148ms 130.535 MiB
#5 Wrong Answer Read 5-16566-1-1666-1..., expect 5. 148ms 130.527 MiB
#6 Wrong Answer Read 56-16-16-16-1666..., expect 5. 147ms 130.527 MiB
#7 Wrong Answer Read 66-14-164-166665..., expect 6. 144ms 130.551 MiB
#8 Wrong Answer Read 55-146-16-16-165..., expect 5. 144ms 130.559 MiB
#9 Wrong Answer Read 46666665-1-1666-..., expect 4. 146ms 130.57 MiB
#10 Wrong Answer Read -164-15-165666-1..., expect -1. 143ms 130.566 MiB

信息

递交者
类型
递交
题目
P1197 费解的开关
语言
C++
递交时间
2021-11-13 22:25:27
评测时间
2021-11-13 22:25:27
评测机
分数
0
总耗时
≥2404ms
峰值内存
≥130.57 MiB