记录详情

Time Exceeded

foo.cc: In function 'int main()':
foo.cc:10:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   10 |                 if(x%3==0||x==1&&c[1]-x!=1)
      |                            ~~~~^~~~~~~~~~~
foo.cc:10:37: warning: array subscript 1 is above array bounds of 'int [1]' [-Warray-bounds]
   10 |                 if(x%3==0||x==1&&c[1]-x!=1)
      |                                  ~~~^
foo.cc:5:21: note: while referencing 'c'
    5 |         int x,n,k=1,c[1];
      |                     ^
foo.cc:16:36: warning: array subscript 1 is above array bounds of 'int [1]' [-Warray-bounds]
   16 |                 else if(x%2==0&&c[1]-x!=1)
      |                                 ~~~^
foo.cc:5:21: note: while referencing 'c'
    5 |         int x,n,k=1,c[1];
      |                     ^
foo.cc:18:28: warning: array subscript 1 is above array bounds of 'int [1]' [-Warray-bounds]
   18 |                         c[1]=x;
      |                         ~~~^
foo.cc:5:21: note: while referencing 'c'
    5 |         int x,n,k=1,c[1];
      |                     ^
foo.cc:12:28: warning: array subscript 1 is above array bounds of 'int [1]' [-Warray-bounds]
   12 |                         c[1]=x;
      |                         ~~~^
foo.cc:5:21: note: while referencing 'c'
    5 |         int x,n,k=1,c[1];
      |                     ^
foo.cc:22:23: warning: array subscript 1 is above array bounds of 'int [1]' [-Warray-bounds]
   22 |                 if(c[1]-x==1)
      |                    ~~~^
foo.cc:5:21: note: while referencing 'c'
    5 |         int x,n,k=1,c[1];
      |                     ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥1099ms ≥256.0 KiB
#2 Accepted 3ms 256.0 KiB
#3 Wrong Answer Read 8, expect 7. 2ms 256.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 1ms 256.0 KiB

信息

递交者
类型
递交
题目
1 猜数游戏的最少次数
比赛
2022暑期青少年社团(告别赛)
语言
C++
递交时间
2022-08-21 19:51:15
评测时间
2022-08-21 19:51:15
评测机
分数
60
总耗时
≥1108ms
峰值内存
≥256.0 KiB