/ rignts /

记录详情

Time Exceeded

foo.cc: In function 'void init(int)':
foo.cc:35:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tmp[a[j]] > cnt || tmp[a[j]] == cnt && a[j] < cur) {
                           ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int query(int, int)':
foo.cc:59:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tmp > cnt || tmp == cnt && a[i] < cur) {
                     ~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc:66:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tmp > cnt || tmp == cnt && a[i] < cur) {
                     ~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc:74:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tmp > cnt || tmp == cnt && a[i] < cur) {
                     ~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:85: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:86: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:96: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 6ms 1.961 MiB
#2 Accepted 5ms 2.078 MiB
#3 Accepted 10ms 2.344 MiB
#4 Accepted 11ms 2.371 MiB
#5 Time Exceeded ≥1428ms ≥4.668 MiB
#6 Accepted 676ms 5.352 MiB
#7 Accepted 808ms 5.227 MiB
#8 Accepted 589ms 5.512 MiB
#9 Time Exceeded ≥1441ms ≥5.664 MiB
#10 Time Exceeded ≥1441ms ≥5.609 MiB
#11 Time Exceeded ≥1438ms ≥5.574 MiB
#12 Time Exceeded ≥1445ms ≥5.707 MiB
#13 Time Exceeded ≥1449ms ≥5.633 MiB
#14 Time Exceeded ≥1450ms ≥5.609 MiB
#15 Time Exceeded ≥1301ms ≥5.609 MiB
#16 Time Exceeded ≥1297ms ≥5.684 MiB
#17 Time Exceeded ≥1444ms ≥5.609 MiB
#18 Time Exceeded ≥1444ms ≥5.652 MiB
#19 Time Exceeded ≥1450ms ≥5.617 MiB
#20 Time Exceeded ≥1017ms ≥5.59 MiB

信息

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