/ rignts /

记录详情

Accepted

foo.cc: In function 'int query(int, int)':
foo.cc:75:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tx > cnt || tx == cnt && a[i] < cur) {
                    ~~~~~~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:86: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:87: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:97: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 12ms 1.879 MiB
#2 Accepted 17ms 2.012 MiB
#3 Accepted 29ms 2.25 MiB
#4 Accepted 31ms 2.293 MiB
#5 Accepted 398ms 4.676 MiB
#6 Accepted 555ms 5.172 MiB
#7 Accepted 584ms 5.102 MiB
#8 Accepted 502ms 5.387 MiB
#9 Accepted 718ms 5.656 MiB
#10 Accepted 694ms 5.691 MiB
#11 Accepted 657ms 5.621 MiB
#12 Accepted 624ms 5.641 MiB
#13 Accepted 636ms 5.551 MiB
#14 Accepted 617ms 5.613 MiB
#15 Accepted 657ms 5.57 MiB
#16 Accepted 691ms 5.648 MiB
#17 Accepted 686ms 5.57 MiB
#18 Accepted 607ms 5.543 MiB
#19 Accepted 654ms 5.555 MiB
#20 Accepted 622ms 5.516 MiB

信息

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