记录详情

Time Exceeded

foo.cc: In member function 'void tree::build(int, int, int)':
foo.cc:25:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   25 |         int mid = L + R >> 1;
      |                   ~~^~~
foo.cc: In member function 'void tree::modify(int, int, int, int)':
foo.cc:39:27: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   39 |         int mid = nd[p].L + nd[p].R >> 1;
      |                   ~~~~~~~~^~~~~~~~~
foo.cc: In member function 'void tree::query(int, int)':
foo.cc:60:27: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   60 |         int mid = nd[p].L + nd[p].R >> 1;
      |                   ~~~~~~~~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:82:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   82 |     scanf("%d %d", &n, &q);
      |     ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:84:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   84 |         scanf("%lld", &a[i]);
      |         ~~~~~^~~~~~~~~~~~~~~
foo.cc:91:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   91 |         scanf("%d", &op);
      |         ~~~~~^~~~~~~~~~~
foo.cc:94:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   94 |             scanf("%d %d %d", &l, &r, &v);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:98:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   98 |             scanf("%d %d", &x, &v);
      |             ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:104:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  104 |             scanf("%d", &x);
      |             ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 91ms 64.742 MiB
#2 Accepted 88ms 64.609 MiB
#3 Accepted 76ms 64.75 MiB
#4 Accepted 76ms 64.742 MiB
#5 Accepted 69ms 64.742 MiB
#6 Accepted 72ms 64.742 MiB
#7 Accepted 89ms 64.742 MiB
#8 Time Exceeded ≥5109ms ≥158.867 MiB
#9 Time Exceeded ≥5105ms ≥92.367 MiB
#10 Time Exceeded ≥5112ms ≥153.117 MiB

信息

递交者
类型
递交
题目
P1384 Problem C. Segtree Master
语言
C++
递交时间
2022-07-13 01:31:24
评测时间
2022-07-13 01:31:24
评测机
分数
70
总耗时
≥15890ms
峰值内存
≥158.867 MiB