记录详情

Time Exceeded

foo.cc: In member function 'void segment_tree::pushcol(long long int, long long int, long long int)':
foo.cc:24:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   int mid = l + r >> 1;
             ~~^~~
foo.cc: In member function 'void segment_tree::build(long long int, long long int, long long int)':
foo.cc:37:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   int mid = l + r >> 1;
             ~~^~~
foo.cc: In member function 'long long int segment_tree::query(long long int, long long int, long long int, long long int, long long int)':
foo.cc:46:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   int mid = l + r >> 1, res = 0;
             ~~^~~
foo.cc: In member function 'void segment_tree::modify(long long int, long long int, long long int, long long int, long long int, long long int)':
foo.cc:60:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   int mid = l + r >> 1;
             ~~^~~
foo.cc: In function 'int main()':
foo.cc:68:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld %lld", &n, &q);
  ~~~~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:73:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%lld %lld %lld", &op, &l, &r);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:77:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%lld", &x);
    ~~~~~^~~~~~~~~~~~
foo.cc: In member function 'void segment_tree::build(long long int, long long int, long long int)':
foo.cc:34:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%lld", &sum[rt]);
    ~~~~~^~~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Accepted 138ms 6.816 MiB
#2 Accepted 785ms 15.809 MiB
#3 Accepted 1552ms 43.402 MiB
#4 Time Exceeded ≥2080ms ≥46.641 MiB
#5 Accepted 1386ms 45.301 MiB
#6 Accepted 1647ms 38.008 MiB

信息

递交者
类型
递交
题目
P1020 【模板】线段树
语言
C++
递交时间
2021-04-09 19:47:51
评测时间
2021-04-09 19:47:51
评测机
分数
50
总耗时
≥7591ms
峰值内存
≥46.641 MiB