/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'int main()':
foo.cc:40:29: warning: narrowing conversion of 'y[i]' from 'long long int' to 'double' inside { } [-Wnarrowing]
    b[++cnt]=(bian){i,i-1,y[i]};
                          ~~~^
foo.cc:47:38: warning: narrowing conversion of 'yy[i]' from 'long long int' to 'double' inside { } [-Wnarrowing]
    b[++cnt]=(bian){i+bas,i+bas-1,yy[i]};
                                  ~~~~^
foo.cc:74:9: warning: variable 'm1' set but not used [-Wunused-but-set-variable]
  double m1,m2;
         ^~
foo.cc:74:12: warning: variable 'm2' set but not used [-Wunused-but-set-variable]
  double m1,m2;
            ^~
foo.cc:75:6: warning: unused variable 'to1' [-Wunused-variable]
  int to1,to2;
      ^~~
foo.cc:75:10: warning: unused variable 'to2' [-Wunused-variable]
  int to1,to2;
          ^~~
foo.cc:34:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld%lld%lld%lld",&n,&m,&x,&xx);
  ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:38:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%lld",&y[i]);
   ~~~~~^~~~~~~~~~~~~~
foo.cc:45:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%lld",&yy[i]);
   ~~~~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 1ms 344.0 KiB
#3 Accepted 2ms 512.0 KiB
#4 Accepted 2ms 512.0 KiB
#5 Accepted 82ms 15.375 MiB
#6 Accepted 104ms 17.836 MiB
#7 Accepted 94ms 17.699 MiB
#8 Time Exceeded ≥796ms ≥102.715 MiB
#9 Time Exceeded ≥807ms ≥93.562 MiB
#10 Accepted 818ms 105.23 MiB

信息

递交者
类型
递交
题目
P1466 电缆建设
语言
C++
递交时间
2021-11-14 17:26:29
评测时间
2021-11-14 17:26:29
评测机
分数
80
总耗时
≥2711ms
峰值内存
≥105.23 MiB