记录详情

Time Exceeded

foo.cc: In function 'void solve()':
foo.cc:12:20: warning: iteration 50003 invokes undefined behavior [-Waggressive-loop-optimizations]
         if(!prime[i])
             ~~~~~~~^
foo.cc:10:22: note: within this loop
     for(int i = 2; i <= N; i++)
                    ~~^~~~
foo.cc:23:17: warning: iteration 50003 invokes undefined behavior [-Waggressive-loop-optimizations]
         prime[i]+=prime[i-1];
         ~~~~~~~~^~~~~~~~~~~~
foo.cc:22:22: note: within this loop
     for(int i = 2; i <= N; i++)
                    ~~^~~~
# 状态 耗时 内存占用
#1 Time Exceeded ≥1347ms ≥636.0 KiB
#2 Time Exceeded ≥1344ms ≥588.0 KiB
#3 Time Exceeded ≥1382ms ≥616.0 KiB
#4 Time Exceeded ≥1387ms ≥624.0 KiB
#5 Time Exceeded ≥1874ms ≥592.0 KiB

信息

递交者
类型
递交
题目
P1209 C3 互质数的对数
比赛
2020苏青奥赛集训营(2021-1-30课堂小练)
语言
C++
递交时间
2021-01-30 12:26:45
评测时间
2021-01-30 12:26:45
评测机
分数
0
总耗时
≥7336ms
峰值内存
≥636.0 KiB