记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:14:8: warning: iteration 1000000 invokes undefined behavior [-Waggressive-loop-optimizations]
   a[i] = ( a[i - 1] * i ) % 998244353;
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:13:19: note: within this loop
  for(int i = 1; i <= 1000001; i++)
                 ~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 11ms 7.965 MiB
#2 Accepted 10ms 7.977 MiB
#3 Accepted 10ms 7.941 MiB
#4 Accepted 10ms 8.043 MiB
#5 Accepted 10ms 8.051 MiB
#6 Accepted 10ms 8.059 MiB
#7 Accepted 10ms 8.012 MiB
#8 Accepted 10ms 7.977 MiB
#9 Accepted 10ms 8.047 MiB
#10 Accepted 10ms 7.977 MiB
#11 Accepted 10ms 7.988 MiB
#12 Accepted 10ms 7.992 MiB
#13 Accepted 180ms 8.055 MiB
#14 Accepted 318ms 8.059 MiB
#15 Accepted 169ms 8.016 MiB
#16 Accepted 189ms 8.039 MiB
#17 Accepted 320ms 8.02 MiB
#18 Accepted 170ms 8.012 MiB
#19 Accepted 61ms 8.055 MiB
#20 Accepted 181ms 8.062 MiB

信息

递交者
类型
递交
题目
P1563 Problem 1A. Factorial
比赛
2024春 悬赏令第一周
语言
C++
递交时间
2024-04-07 21:39:28
评测时间
2024-04-13 20:54:14
评测机
分数
100
总耗时
1721ms
峰值内存
8.062 MiB