/ 晓编程 /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:29:8: warning: iteration 9998 invokes undefined behavior [-Waggressive-loop-optimizations]
   f[i] = f[i - 1] + f[i - 2];
   ~~~~~^~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:28:20: note: within this loop
  for (int i = 3; i <= 10001; i++) {
                  ~~^~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 216.0 KiB
#2 Wrong Answer 1ms 228.0 KiB
#3 Wrong Answer 1ms 228.0 KiB
#4 Wrong Answer 1ms 228.0 KiB
#5 Wrong Answer 1ms 224.0 KiB

信息

递交者
类型
递交
题目
斐波那契数列(二)
语言
C++
递交时间
2021-01-25 15:27:16
评测时间
2021-01-25 15:27:16
评测机
分数
20
总耗时
7ms
峰值内存
228.0 KiB