/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'int main()':
/in/foo.cc:20:19: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
 scanf("%d%d",&n,&c);
                   ^
/in/foo.cc:20:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
/in/foo.cc:21:41: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
 for (int i=1;i<n;i++) scanf("%d",&ans[i]);
                                         ^
/in/foo.cc:32:8: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 if (i>c&&f!=ans[i]||f%i!=ans[i]) //优化三
     ~~~^~~~~~~~~~~
/in/foo.cc:41:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
 printf("%d %d %d\n",x,a,b);
                          ^
/in/foo.cc:41:26: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
/in/foo.cc:41:26: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
# 状态 耗时 内存占用
#1 Accepted 1ms 380.0 KiB
#2 Accepted 1ms 340.0 KiB
#3 Accepted 1ms 336.0 KiB
#4 Accepted 1ms 340.0 KiB
#5 Time Exceeded ≥1001ms ≥420.0 KiB
#6 Accepted 1ms 364.0 KiB
#7 Accepted 1ms 360.0 KiB
#8 Accepted 1ms 364.0 KiB
#9 Accepted 1ms 364.0 KiB
#10 Accepted 1ms 404.0 KiB
#11 Accepted 5ms 616.0 KiB
#12 Accepted 5ms 736.0 KiB
#13 Accepted 5ms 636.0 KiB
#14 Accepted 5ms 612.0 KiB
#15 Accepted 4ms 612.0 KiB
#16 Accepted 350ms 1.07 MiB
#17 Accepted 115ms 1.102 MiB
#18 Accepted 288ms 1.105 MiB
#19 Accepted 353ms 1.102 MiB
#20 Accepted 287ms 1.113 MiB

信息

递交者
类型
递交
题目
P1965 夜夜的数据加强
语言
C++
递交时间
2021-07-19 16:19:02
评测时间
2021-07-19 16:19:02
评测机
分数
95
总耗时
≥2434ms
峰值内存
≥1.113 MiB