/ Vijos /

记录详情

Time Exceeded

foo.cc:24:39: warning: bad option '-fwhole-program' to pragma 'optimize' [-Wpragmas]
 #pragma GCC optimize("-fwhole-program")
                                       ^
foo.cc:33:41: warning: bad option '-fcse-skip-blocks' to pragma 'optimize' [-Wpragmas]
 #pragma GCC optimize("-fcse-skip-blocks")
                                         ^
foo.cc:47:51: warning: bad option '-funsafe-loop-optimizations' to pragma 'optimize' [-Wpragmas]
 #pragma GCC optimize("-funsafe-loop-optimizations")
                                                   ^
foo.cc:56:21: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
 int min(int x,int y )
                     ^
foo.cc:56:21: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:56:21: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:62:43: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
 __attribute__((optimize("-O3"))) int main()
                                           ^
foo.cc:62:43: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:62:43: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc: In function 'int main()':
foo.cc:68:19: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
 scanf("%d%d",&n,&c);
              ~~   ^
foo.cc:68:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
foo.cc:69: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]);
                                  ~~~~~~~^
foo.cc:80:8: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 if (i>c&&f!=ans[i]||f%i!=ans[i]) //优化三
     ~~~^~~~~~~~~~~
foo.cc:89: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);
                          ^
foo.cc:89:26: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
foo.cc:89:26: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
foo.cc:68:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d%d",&n,&c);
 ~~~~~^~~~~~~~~~~~~~
foo.cc:69:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 for (int i=1;i<n;i++) scanf("%d",&ans[i]);
                       ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB
#2 Accepted 0ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 0ms 256.0 KiB
#5 Time Exceeded ≥1256ms ≥288.0 KiB
#6 Accepted 0ms 256.0 KiB
#7 Accepted 0ms 288.0 KiB
#8 Accepted 0ms 236.0 KiB
#9 Accepted 0ms 216.0 KiB
#10 Accepted 1ms 288.0 KiB
#11 Accepted 7ms 628.0 KiB
#12 Accepted 6ms 624.0 KiB
#13 Accepted 8ms 632.0 KiB
#14 Accepted 7ms 624.0 KiB
#15 Accepted 6ms 628.0 KiB
#16 Accepted 438ms 1.055 MiB
#17 Accepted 140ms 1.066 MiB
#18 Accepted 349ms 1.07 MiB
#19 Accepted 429ms 1.07 MiB
#20 Accepted 348ms 1.066 MiB

信息

递交者
类型
递交
题目
P1965 夜夜的数据加强
语言
C++
递交时间
2021-07-21 08:54:10
评测时间
2021-07-21 08:54:10
评测机
分数
95
总耗时
≥3008ms
峰值内存
≥1.07 MiB