/ Vijos /

记录详情

Time Exceeded

/in/foo.cc:22:39: warning: bad option '-fwhole-program' to pragma 'optimize' [-Wpragmas]
   22 | #pragma GCC optimize("-fwhole-program")
      |                                       ^
/in/foo.cc:29:41: warning: bad option '-fstrict-overflow' to pragma 'optimize' [-Wpragmas]
   29 | #pragma GCC optimize("-fstrict-overflow")
      |                                         ^
/in/foo.cc:31:41: warning: bad option '-fcse-skip-blocks' to pragma 'optimize' [-Wpragmas]
   31 | #pragma GCC optimize("-fcse-skip-blocks")
      |                                         ^
/in/foo.cc:45:51: warning: bad option '-funsafe-loop-optimizations' to pragma 'optimize' [-Wpragmas]
   45 | #pragma GCC optimize("-funsafe-loop-optimizations")
      |                                                   ^
/in/foo.cc:58:21: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   58 | int min(int x,int y )
      |                     ^
/in/foo.cc:58:21: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
/in/foo.cc:58:21: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
/in/foo.cc:58:21: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
/in/foo.cc:64:10: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   64 | int main()
      |          ^
/in/foo.cc:64:10: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
/in/foo.cc:64:10: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
/in/foo.cc:64:10: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
/in/foo.cc: In function 'int main()':
/in/foo.cc:70:9: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
   70 | scanf("%d%d",&n,&c);
      |        ~^    ~~
      |         |    |
      |         int* long int*
      |        %ld
/in/foo.cc:70:11: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
   70 | scanf("%d%d",&n,&c);
      |          ~^     ~~
      |           |     |
      |           int*  long int*
      |          %ld
/in/foo.cc:71:31: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
   71 | for (int i=1;i<n;i++) scanf("%d",&ans[i]);
      |                              ~^  ~~~~~~~
      |                               |  |
      |                               |  long int*
      |                               int*
      |                              %ld
/in/foo.cc:82:8: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   82 | if (i>c&&f!=ans[i]||f%i!=ans[i]) //优化三
      |     ~~~^~~~~~~~~~~
/in/foo.cc:91:10: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
   91 | printf("%d %d %d\n",x,a,b);
      |         ~^          ~
      |          |          |
      |          int        long int
      |         %ld
/in/foo.cc:91:13: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
   91 | printf("%d %d %d\n",x,a,b);
      |            ~^         ~
      |             |         |
      |             int       long int
      |            %ld
/in/foo.cc:91:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
   91 | printf("%d %d %d\n",x,a,b);
      |               ~^        ~
      |                |        |
      |                int      long int
      |               %ld
# 状态 耗时 内存占用
#1 Accepted 1ms 320.0 KiB
#2 Accepted 1ms 324.0 KiB
#3 Accepted 1ms 284.0 KiB
#4 Accepted 1ms 324.0 KiB
#5 Time Exceeded ≥1001ms ≥440.0 KiB
#6 Accepted 1ms 344.0 KiB
#7 Accepted 1ms 320.0 KiB
#8 Accepted 1ms 328.0 KiB
#9 Accepted 1ms 324.0 KiB
#10 Accepted 1ms 320.0 KiB
#11 Accepted 6ms 528.0 KiB
#12 Accepted 6ms 540.0 KiB
#13 Accepted 7ms 748.0 KiB
#14 Accepted 7ms 560.0 KiB
#15 Accepted 6ms 552.0 KiB
#16 Accepted 370ms 1.184 MiB
#17 Accepted 165ms 1.059 MiB
#18 Accepted 416ms 1.191 MiB
#19 Accepted 505ms 1.195 MiB
#20 Accepted 416ms 1.191 MiB

信息

递交者
类型
递交
题目
P1965 夜夜的数据加强
语言
C++
递交时间
2025-06-10 18:19:36
评测时间
2025-06-10 18:19:36
评测机
分数
95
总耗时
≥2921ms
峰值内存
≥1.195 MiB