/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'int main()':
foo.cc:20:9: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
   20 | scanf("%d%d",&n,&c);
      |        ~^    ~~
      |         |    |
      |         int* long int*
      |        %ld
foo.cc:20:11: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
   20 | scanf("%d%d",&n,&c);
      |          ~^     ~~
      |           |     |
      |           int*  long int*
      |          %ld
foo.cc:21:31: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
   21 | for (int i=1;i<n;i++) scanf("%d",&ans[i]);
      |                              ~^  ~~~~~~~
      |                               |  |
      |                               |  long int*
      |                               int*
      |                              %ld
foo.cc:32:8: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   32 | if (i>c&&f!=ans[i]||f%i!=ans[i]) //优化三
      |     ~~~^~~~~~~~~~~
foo.cc:41:10: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
   41 | printf("%d %d %d\n",x,a,b);
      |         ~^          ~
      |          |          |
      |          int        long int
      |         %ld
foo.cc:41:13: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
   41 | printf("%d %d %d\n",x,a,b);
      |            ~^         ~
      |             |         |
      |             int       long int
      |            %ld
foo.cc:41:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
   41 | printf("%d %d %d\n",x,a,b);
      |               ~^        ~
      |                |        |
      |                int      long int
      |               %ld
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 332.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Accepted 3ms 368.0 KiB
#4 Accepted 3ms 412.0 KiB
#5 Time Exceeded ≥1100ms ≥412.0 KiB
#6 Accepted 3ms 412.0 KiB
#7 Accepted 3ms 412.0 KiB
#8 Accepted 3ms 388.0 KiB
#9 Accepted 3ms 412.0 KiB
#10 Accepted 3ms 412.0 KiB
#11 Accepted 16ms 668.0 KiB
#12 Accepted 17ms 668.0 KiB
#13 Accepted 17ms 668.0 KiB
#14 Accepted 16ms 668.0 KiB
#15 Accepted 15ms 668.0 KiB
#16 Accepted 560ms 1.16 MiB
#17 Accepted 214ms 1.16 MiB
#18 Accepted 465ms 1.145 MiB
#19 Accepted 540ms 1.219 MiB
#20 Accepted 463ms 1.16 MiB

信息

递交者
类型
递交
题目
P1965 夜夜的数据加强
语言
C++
递交时间
2023-07-23 10:24:08
评测时间
2023-07-23 10:24:08
评测机
分数
95
总耗时
≥3462ms
峰值内存
≥1.219 MiB