记录详情

Time Exceeded

foo.c: In function 'main':
foo.c:6:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
    6 |         while(scanf("%d",&n)==1);
      |         ^~~~~
foo.c:7:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
    7 |         {
      |         ^
foo.c:12:19: warning: left-hand operand of comma expression has no effect [-Wunused-value]
   12 |         while(x>=3,y>=4);
      |                   ^
foo.c:12:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   12 |         while(x>=3,y>=4);
      |         ^~~~~
foo.c:13:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
   13 |         {
      |         ^
foo.c:5:10: warning: 'n' is used uninitialized [-Wuninitialized]
    5 |         x=n,y=n;
      |         ~^~
foo.c:4:17: note: 'n' declared here
    4 |         int x,y,n,sum;
      |                 ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 284.0 KiB
#2 Accepted 1ms 284.0 KiB
#3 Time Exceeded ≥1100ms ≥284.0 KiB
#4 Time Exceeded ≥1100ms ≥284.0 KiB
#5 Time Exceeded ≥1100ms ≥284.0 KiB

信息

递交者
类型
递交
题目
P1087 xf1-10多喝饮料
语言
C
递交时间
2023-10-12 19:29:17
评测时间
2023-10-12 19:29:17
评测机
分数
40
总耗时
≥3305ms
峰值内存
≥284.0 KiB