/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'void init()':
/in/foo.cc:23:14: warning: iteration 1004 invokes undefined behavior [-Waggressive-loop-optimizations]
    fib[i][j] = f[gcd(i, j)];
    ~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc:22:21: note: within this loop
   for (int j = 1; j <= MAXN; j++)
                     ^
/in/foo.cc:19:8: warning: iteration 1010023 invokes undefined behavior [-Waggressive-loop-optimizations]
   f[i] = (f[i - 1] + f[i - 2]) % CA;
        ^
/in/foo.cc:18:20: note: within this loop
  for (int i = 2; i <= MAXN * MAXN; i++)
                    ^
# 状态 耗时 内存占用
#1 Runtime Error 156ms 15.625 MiB
#2 Runtime Error 152ms 15.738 MiB
#3 Runtime Error 149ms 15.625 MiB
#4 Runtime Error 110ms 15.629 MiB
#5 Runtime Error 155ms 15.625 MiB
#6 Runtime Error 179ms 15.848 MiB
#7 Runtime Error 156ms 15.73 MiB
#8 Runtime Error 147ms 15.75 MiB
#9 Runtime Error 115ms 15.75 MiB
#10 Runtime Error 108ms 15.703 MiB

信息

递交者
类型
递交
题目
P2013 数字表格
语言
C++
递交时间
2018-03-26 10:27:18
评测时间
2018-03-26 10:27:18
评测机
分数
0
总耗时
1432ms
峰值内存
15.848 MiB