/ rignts /

记录详情

Time Exceeded

foo.cc: In function 'int query(int, int)':
foo.cc:78:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tx > cnt || tx == cnt && a[i] < cur) {
                    ~~~~~~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:89:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d", &n, &q);
  ~~~~~^~~~~~~~~~~~~~~~
foo.cc:90:50: 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", &a[i]), san[i] = a[i];
                                ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
foo.cc:100:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d", &l, &r);
   ~~~~~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 11ms 1.883 MiB
#2 Accepted 17ms 1.98 MiB
#3 Accepted 32ms 2.262 MiB
#4 Accepted 31ms 2.195 MiB
#5 Accepted 465ms 4.621 MiB
#6 Accepted 598ms 5.137 MiB
#7 Accepted 612ms 5.133 MiB
#8 Accepted 679ms 5.262 MiB
#9 Accepted 782ms 5.602 MiB
#10 Accepted 763ms 5.637 MiB
#11 Accepted 814ms 5.516 MiB
#12 Accepted 864ms 5.578 MiB
#13 Accepted 762ms 5.508 MiB
#14 Accepted 975ms 5.496 MiB
#15 Accepted 736ms 5.512 MiB
#16 Accepted 761ms 5.508 MiB
#17 Accepted 850ms 5.5 MiB
#18 Time Exceeded ≥1063ms ≥5.43 MiB
#19 Accepted 903ms 5.504 MiB
#20 Accepted 905ms 5.496 MiB

信息

递交者
类型
递交
题目
P1010 TEST01(pgy)
语言
C++
递交时间
2021-08-26 23:13:52
评测时间
2021-08-26 23:13:52
评测机
分数
95
总耗时
≥12632ms
峰值内存
≥5.637 MiB