/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'int main()':
foo.cc:42:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   42 |             if (p < x || p == x && ansx > r) x = p, ansx = r, ansy = l;
      |                          ~~~~~~~^~~~~~~~~~~
foo.cc:34:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   34 |     scanf("%d", &n);
      |     ~~~~~^~~~~~~~~~
foo.cc:35:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   35 |     for (int i = 1; i <= n; ++i) scanf("%d", &a[i]);
      |                                  ~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Time Exceeded ≥1079ms ≥512.0 KiB
#4 Time Exceeded ≥1076ms ≥512.0 KiB
#5 Time Exceeded ≥1100ms ≥512.0 KiB
#6 Time Exceeded ≥1097ms ≥512.0 KiB
#7 Time Exceeded ≥1086ms ≥512.0 KiB
#8 Time Exceeded ≥1083ms ≥512.0 KiB
#9 Time Exceeded ≥1090ms ≥512.0 KiB
#10 Time Exceeded ≥1090ms ≥512.0 KiB

信息

递交者
类型
递交
题目
P1237 隐形的翅膀
语言
C++
递交时间
2022-03-17 10:35:42
评测时间
2022-03-17 10:35:42
评测机
分数
20
总耗时
≥8708ms
峰值内存
≥512.0 KiB