记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:32:10: warning: iteration 11 invokes undefined behavior [-Waggressive-loop-optimizations]
   s=s+c[i]*100;
       ~~~^
/in/foo.cc:30:11: note: within this loop
  for(i=0;i<12;i++)
          ~^~~
/in/foo.cc:16:23: warning: iteration 10 invokes undefined behavior [-Waggressive-loop-optimizations]
   b[i]=(b[i-1]+300-a[i])%100;
                    ~~~^
/in/foo.cc:14:11: note: within this loop
  for(i=1;i<12;i++)
          ~^~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 200.0 KiB
#2 Wrong Answer 1ms 212.0 KiB
#3 Wrong Answer 1ms 216.0 KiB
#4 Wrong Answer 1ms 216.0 KiB
#5 Wrong Answer 1ms 212.0 KiB
#6 Wrong Answer 1ms 212.0 KiB
#7 Wrong Answer 1ms 216.0 KiB
#8 Wrong Answer 1ms 216.0 KiB
#9 Wrong Answer 1ms 272.0 KiB
#10 Wrong Answer 1ms 212.0 KiB

信息

递交者
类型
递交
题目
P1002 伟伟的储蓄计划
语言
C++
递交时间
2019-06-12 20:08:28
评测时间
2019-06-12 20:08:28
评测机
分数
0
总耗时
16ms
峰值内存
272.0 KiB