/ rignts /

记录详情

Time Exceeded

foo.cc: In function 'void init()':
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: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.551 MiB
#2 Accepted 10ms 1.645 MiB
#3 Accepted 26ms 1.691 MiB
#4 Accepted 37ms 1.723 MiB
#5 Time Exceeded ≥1391ms ≥2.332 MiB
#6 Time Exceeded ≥1438ms ≥2.555 MiB
#7 Time Exceeded ≥1312ms ≥2.461 MiB
#8 Time Exceeded ≥1327ms ≥2.723 MiB
#9 Time Exceeded ≥1438ms ≥2.531 MiB
#10 Time Exceeded ≥1440ms ≥2.441 MiB
#11 Time Exceeded ≥1446ms ≥2.371 MiB
#12 Time Exceeded ≥1447ms ≥2.438 MiB
#13 Time Exceeded ≥1414ms ≥2.375 MiB
#14 Time Exceeded ≥1407ms ≥2.461 MiB
#15 Time Exceeded ≥1442ms ≥2.348 MiB
#16 Time Exceeded ≥1444ms ≥2.496 MiB
#17 Time Exceeded ≥1456ms ≥2.449 MiB
#18 Time Exceeded ≥1456ms ≥2.441 MiB
#19 Time Exceeded ≥1447ms ≥2.453 MiB
#20 Time Exceeded ≥1536ms ≥2.492 MiB

信息

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