Time Exceeded

foo.cc: In function 'int x(int)':
foo.cc:7:10: warning: unused variable 'j' [-Wunused-variable]
    7 |  int i=1,j,nn=n,s=0;
      |          ^
foo.cc:9:6: warning: iteration 99 invokes undefined behavior [-Waggressive-loop-optimizations]
    9 |  a[i]=-1;
      |  ~~~~^~~
foo.cc:8:11: note: within this loop
    8 |  for(i=1;i<=100;i++)
      |          ~^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥1100ms ≥384.0 KiB
#2 Time Exceeded ≥1098ms ≥256.0 KiB
#3 Accepted 2ms 380.0 KiB
#4 Time Exceeded ≥1100ms ≥256.0 KiB
#5 Time Exceeded ≥1098ms ≥256.0 KiB
#6 Time Exceeded ≥1100ms ≥384.0 KiB
#7 Time Exceeded ≥1100ms ≥256.0 KiB
#8 Time Exceeded ≥1097ms ≥256.0 KiB
#9 Time Exceeded ≥1100ms ≥384.0 KiB
#10 Time Exceeded ≥1098ms ≥256.0 KiB

信息

递交者
类型
递交
题目
P1313 xxyw1-3快乐数
比赛
2022.5复学庆祝赛(初二)
语言
C++
递交时间
2022-05-14 12:48:19
评测时间
2022-05-14 12:48:19
评测机
分数
10
总耗时
≥9897ms
峰值内存
≥384.0 KiB