/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'int main()':
/in/foo.cc:17: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:17:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
/in/foo.cc:18: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:28:8: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 if (i>c&&f!=ans[i]||f%i!=ans[i])
     ~~~^~~~~~~~~~~
/in/foo.cc:37: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:37:26: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
/in/foo.cc:37:26: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
# 状态 耗时 内存占用
#1 Accepted 2ms 200.0 KiB
#2 Accepted 2ms 188.0 KiB
#3 Accepted 1ms 184.0 KiB
#4 Accepted 2ms 204.0 KiB
#5 Time Exceeded ≥1002ms ≥184.0 KiB
#6 Accepted 1ms 192.0 KiB
#7 Accepted 2ms 200.0 KiB
#8 Accepted 3ms 192.0 KiB
#9 Accepted 1ms 180.0 KiB
#10 Accepted 1ms 208.0 KiB
#11 Accepted 10ms 572.0 KiB
#12 Accepted 9ms 576.0 KiB
#13 Accepted 10ms 584.0 KiB
#14 Accepted 7ms 576.0 KiB
#15 Accepted 7ms 568.0 KiB
#16 Accepted 428ms 972.0 KiB
#17 Accepted 142ms 1.055 MiB
#18 Accepted 369ms 960.0 KiB
#19 Accepted 433ms 968.0 KiB
#20 Accepted 378ms 960.0 KiB

信息

递交者
类型
递交
题目
P1965 夜夜的数据加强
语言
C++
递交时间
2018-11-28 20:37:45
评测时间
2018-11-28 20:38:04
评测机
分数
95
总耗时
≥2819ms
峰值内存
≥1.055 MiB