Time Exceeded

foo.cc: In function 'int main()':
foo.cc:19:35: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   19 |                                 if(abs(i-x)+abs(j-y)<=d)
      |                                   ^
foo.cc:11:19: warning: unused variable 'sum' [-Wunused-variable]
   11 |         long long sum=0;
      |                   ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 3ms 412.0 KiB
#3 Accepted 69ms 1.527 MiB
#4 Accepted 70ms 1.527 MiB
#5 Time Exceeded ≥1101ms ≥2.285 MiB
#6 Time Exceeded ≥1101ms ≥2.359 MiB
#7 Time Exceeded ≥1101ms ≥1.578 MiB
#8 Time Exceeded ≥1101ms ≥1.527 MiB
#9 Time Exceeded ≥1100ms ≥3.477 MiB
#10 Time Exceeded ≥1100ms ≥4.195 MiB

信息

递交者
类型
递交
题目
P2428 糖果
比赛
2023CSP热身4
语言
C++
递交时间
2023-10-15 20:07:37
评测时间
2023-10-15 20:07:37
评测机
分数
40
总耗时
≥6754ms
峰值内存
≥4.195 MiB