记录详情

Time Exceeded

foo.cc: In function 'bool cmp(node, node)':
foo.cc:17:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 { return a.a<b.a||a.a==b.a&&a.b<b.b;}
                   ~~~~~~~~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:20:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
  scanf("%d%d",&n,&m);
               ~~   ^
foo.cc:20:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
foo.cc:23:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
    scanf("%d",&a[i][j]);
               ~~~~~~~~^
foo.cc:26:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
    scanf("%d",&b[i][j]);
               ~~~~~~~~^
foo.cc:57:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   while(j<=q[i].x&&j<k||i==cnt)
         ~~~~~~~~~^~~~~
foo.cc:59:50: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
    if(i==1) printf("%d\n",j*q[i].dot.a+q[i].dot.b);
                           ~~~~~~~~~~~~~~~~~~~~~~~^
foo.cc:60:80: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
    else  printf("%d\n",max(j*q[i-1].dot.a+q[i-1].dot.b,j*q[i].dot.a+q[i].dot.b));
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
foo.cc:42:9: warning: unused variable 'x' [-Wunused-variable]
  double x;
         ^
foo.cc:20:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&n,&m);
  ~~~~~^~~~~~~~~~~~~~
foo.cc:23:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d",&a[i][j]);
    ~~~~~^~~~~~~~~~~~~~~
foo.cc:26:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d",&b[i][j]);
    ~~~~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 644.0 KiB
#2 Time Exceeded ≥4252ms ≥800.0 KiB
#3 Time Exceeded ≥4259ms ≥684.0 KiB
#4 Time Exceeded ≥4178ms ≥668.0 KiB
#5 Wrong Answer Read 264979119, expect 17444848303. 2ms 572.0 KiB
#6 Time Exceeded ≥4183ms ≥2.43 MiB
#7 Time Exceeded ≥4070ms ≥2.629 MiB
#8 Time Exceeded ≥4077ms ≥2.176 MiB
#9 Time Exceeded ≥3726ms ≥2.273 MiB
#10 Time Exceeded ≥3705ms ≥2.238 MiB
#11 Wrong Answer Read 1951310684, expect 1835902346076. 1065ms 36.949 MiB
#12 Time Exceeded ≥2828ms ≥35.941 MiB
#13 Wrong Answer Read -1708722599, expect 32309330245209. 496ms 34.695 MiB
#14 Time Exceeded ≥2440ms ≥33.219 MiB
#15 Wrong Answer Read 1504790323, expect 165228896667443. 749ms 40.934 MiB

信息

递交者
类型
递交
题目
P1302 I. White Album
语言
C++
递交时间
2021-11-09 23:53:27
评测时间
2021-11-09 23:53:27
评测机
分数
15
总耗时
≥40040ms
峰值内存
≥40.934 MiB