/ rignts /

记录详情

Accepted

foo.cc: In function 'int query(int, int)':
foo.cc:67:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tx > cnt || tx == cnt && a[i] < cur) {
                    ~~~~~~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:78: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:79: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:89: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 5ms 1.766 MiB
#2 Accepted 6ms 2.023 MiB
#3 Accepted 10ms 2.172 MiB
#4 Accepted 12ms 2.289 MiB
#5 Accepted 206ms 4.539 MiB
#6 Accepted 291ms 5.262 MiB
#7 Accepted 346ms 5.199 MiB
#8 Accepted 228ms 5.387 MiB
#9 Accepted 443ms 5.199 MiB
#10 Accepted 447ms 5.297 MiB
#11 Accepted 340ms 5.219 MiB
#12 Accepted 302ms 5.223 MiB
#13 Accepted 330ms 5.164 MiB
#14 Accepted 302ms 5.258 MiB
#15 Accepted 447ms 5.207 MiB
#16 Accepted 456ms 5.203 MiB
#17 Accepted 400ms 5.18 MiB
#18 Accepted 339ms 5.09 MiB
#19 Accepted 355ms 5.176 MiB
#20 Accepted 291ms 5.152 MiB

信息

递交者
类型
递交
题目
P1010 TEST01(pgy)
语言
C++
递交时间
2021-08-26 23:20:49
评测时间
2021-08-26 23:20:49
评测机
分数
100
总耗时
5564ms
峰值内存
5.387 MiB