/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:120:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  120 |   if(ratio<min_ratio || ratio==min_ratio && h[i]>max_h){
      |                         ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc:105:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  105 |  scanf("%d",&n);
      |  ~~~~~^~~~~~~~~
foo.cc:106:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  106 |  for(int i=1;i<=n;++i) scanf("%d",&h[i]);
      |                        ~~~~~^~~~~~~~~~~~
foo.cc:113:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  113 |  scanf("%d",&x);
      |  ~~~~~^~~~~~~~~
foo.cc:130:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  130 |  scanf("%d",&m);
      |  ~~~~~^~~~~~~~~
foo.cc:132:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  132 |   scanf("%d%d",&p,&x);
      |   ~~~~~^~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 6ms 640.0 KiB
#2 Accepted 2ms 768.0 KiB
#3 Accepted 6ms 768.0 KiB
#4 Accepted 5ms 768.0 KiB
#5 Accepted 4ms 768.0 KiB
#6 Accepted 4ms 768.0 KiB
#7 Accepted 3ms 768.0 KiB
#8 Accepted 3ms 768.0 KiB
#9 Accepted 3ms 768.0 KiB
#10 Accepted 3ms 768.0 KiB
#11 Accepted 15ms 1.375 MiB
#12 Accepted 20ms 1.375 MiB
#13 Accepted 15ms 1.5 MiB
#14 Accepted 18ms 1.473 MiB
#15 Accepted 121ms 36.742 MiB
#16 Accepted 142ms 36.773 MiB
#17 Accepted 379ms 58.48 MiB
#18 Accepted 535ms 65.672 MiB
#19 Accepted 606ms 72.664 MiB
#20 Accepted 363ms 72.742 MiB

信息

递交者
类型
递交
题目
P1780 开车旅行
语言
C++
递交时间
2022-01-22 21:39:08
评测时间
2022-01-22 21:39:08
评测机
分数
100
总耗时
2260ms
峰值内存
72.742 MiB