Wrong Answer

foo.cc: In function 'int main()':
foo.cc:14:23: warning: iteration 1005 invokes undefined behavior [-Waggressive-loop-optimizations]
   14 |                 if(a[i])
      |                    ~~~^
foo.cc:13:22: note: within this loop
   13 |         for(int i=0;i<=1005;i++)
      |                     ~^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 10, expect 1. 5ms 412.0 KiB
#2 Wrong Answer User output longer than standard answer. 5ms 284.0 KiB
#3 Wrong Answer User output longer than standard answer. 4ms 412.0 KiB
#4 Wrong Answer User output longer than standard answer. 4ms 412.0 KiB
#5 Wrong Answer User output longer than standard answer. 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1496 粥一飞的随机数
语言
C++
递交时间
2023-12-23 12:48:13
评测时间
2023-12-23 12:48:13
评测机
分数
0
总耗时
22ms
峰值内存
412.0 KiB