Time Exceeded

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:26: warning: array subscript -2 is below array bounds of 'int [1000005]' [-Warray-bounds]
   10 |         for (int i=num[-2];i<=n-1;i++)
      |                    ~~~~~~^
/in/foo.cc:4:5: note: while referencing 'num'
    4 | int num[N],n,maxx=INT_MIN;
      |     ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 400.0 KiB
#2 Accepted 2ms 480.0 KiB
#3 Accepted 2ms 504.0 KiB
#4 Accepted 2ms 476.0 KiB
#5 Accepted 38ms 568.0 KiB
#6 Time Exceeded ≥1002ms ≥1.789 MiB
#7 Accepted 57ms 580.0 KiB
#8 Time Exceeded ≥1000ms ≥4.293 MiB
#9 Time Exceeded ≥1002ms ≥3.91 MiB
#10 Time Exceeded ≥1005ms ≥908.0 KiB

信息

递交者
类型
递交
题目
P2562 烹饪问题5级T2 2023.12
语言
C++
递交时间
2026-03-01 21:50:54
评测时间
2026-03-01 21:50:54
评测机
分数
60
总耗时
≥4115ms
峰值内存
≥4.293 MiB