/ 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:57:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tmp > cnt || tmp == cnt && a[i] < cur) {
                     ~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc:64:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tmp > cnt || tmp == cnt && a[i] < cur) {
                     ~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc:72:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (tmp > cnt || tmp == cnt && a[i] < cur) {
                     ~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:83: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:84: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:94: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.777 MiB
#2 Accepted 6ms 1.879 MiB
#3 Accepted 14ms 2.258 MiB
#4 Accepted 18ms 2.285 MiB
#5 Time Exceeded ≥1416ms ≥4.621 MiB
#6 Accepted 967ms 5.223 MiB
#7 Time Exceeded ≥1165ms ≥5.137 MiB
#8 Accepted 803ms 5.34 MiB
#9 Time Exceeded ≥1425ms ≥5.605 MiB
#10 Time Exceeded ≥1436ms ≥5.586 MiB
#11 Time Exceeded ≥1420ms ≥5.555 MiB
#12 Time Exceeded ≥1409ms ≥5.527 MiB
#13 Time Exceeded ≥1447ms ≥5.539 MiB
#14 Time Exceeded ≥1448ms ≥5.582 MiB
#15 Time Exceeded ≥1446ms ≥5.539 MiB
#16 Time Exceeded ≥1450ms ≥5.59 MiB
#17 Time Exceeded ≥1454ms ≥5.512 MiB
#18 Time Exceeded ≥1451ms ≥5.543 MiB
#19 Time Exceeded ≥1443ms ≥5.523 MiB
#20 Time Exceeded ≥1550ms ≥5.484 MiB

信息

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