/ rignts /

记录详情

Time Exceeded

foo.cc: In function 'void init(int)':
foo.cc:36: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:58:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tmp > cnt || tmp == cnt && a[i] < cur) {
                     ~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc:65:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tmp > cnt || tmp == cnt && a[i] < cur) {
                     ~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc:73:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tmp > cnt || tmp == cnt && a[i] < cur) {
                     ~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:84: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:85: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:95: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.875 MiB
#2 Accepted 6ms 1.996 MiB
#3 Accepted 12ms 2.273 MiB
#4 Accepted 12ms 2.258 MiB
#5 Time Exceeded ≥1411ms ≥4.59 MiB
#6 Accepted 716ms 5.199 MiB
#7 Accepted 866ms 5.141 MiB
#8 Accepted 580ms 5.262 MiB
#9 Time Exceeded ≥1432ms ≥5.508 MiB
#10 Time Exceeded ≥1447ms ≥5.637 MiB
#11 Time Exceeded ≥1448ms ≥5.512 MiB
#12 Time Exceeded ≥1456ms ≥5.562 MiB
#13 Time Exceeded ≥1442ms ≥5.539 MiB
#14 Time Exceeded ≥1439ms ≥5.586 MiB
#15 Time Exceeded ≥1446ms ≥5.5 MiB
#16 Time Exceeded ≥1445ms ≥5.566 MiB
#17 Time Exceeded ≥1452ms ≥5.52 MiB
#18 Time Exceeded ≥1449ms ≥5.551 MiB
#19 Time Exceeded ≥1438ms ≥5.531 MiB
#20 Time Exceeded ≥1825ms ≥5.516 MiB

信息

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