记录详情

Accepted

/in/foo.cc: In function 'void getCatalan()':
/in/foo.cc:31:13: warning: iteration 1000003 invokes undefined behavior [-Waggressive-loop-optimizations]
   Catalan[i]=(((Catalan[i-1]*(4*i-2))%mod)*mod_inverse(i+1,mod))%mod;
   ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:30:14: note: within this loop
  for(ll i=2;i<=maxn;i++){
             ~^~~~~~
# 状态 耗时 内存占用
#1 Accepted 217ms 7.875 MiB
#2 Accepted 275ms 7.875 MiB
#3 Accepted 255ms 7.875 MiB
#4 Accepted 237ms 7.875 MiB
#5 Accepted 261ms 7.875 MiB
#6 Accepted 266ms 7.852 MiB
#7 Accepted 229ms 7.875 MiB
#8 Accepted 225ms 7.867 MiB
#9 Accepted 222ms 7.875 MiB
#10 Accepted 256ms 7.875 MiB
#11 Accepted 212ms 7.875 MiB
#12 Accepted 220ms 7.875 MiB
#13 Accepted 215ms 7.875 MiB
#14 Accepted 232ms 7.875 MiB
#15 Accepted 213ms 8.0 MiB
#16 Accepted 212ms 7.875 MiB
#17 Accepted 215ms 7.875 MiB
#18 Accepted 254ms 7.875 MiB
#19 Accepted 214ms 7.875 MiB
#20 Accepted 219ms 7.949 MiB

信息

递交者
类型
递交
题目
Steps
语言
C++
递交时间
2017-08-29 15:24:31
评测时间
2017-08-29 15:24:31
评测机
分数
100
总耗时
4659ms
峰值内存
8.0 MiB