记录详情

Time Exceeded

foo.cc: In function 'void build(long long int, long long int, long long int)':
foo.cc:17:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid = l + r >> 1;
            ~~^~~
foo.cc: In function 'void pushdown(long long int, long long int, long long int)':
foo.cc:24:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid = l + r >> 1;
            ~~^~~
foo.cc: In function 'void updata(long long int, long long int, long long int, long long int, long long int, long long int)':
foo.cc:40:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid = l + r >> 1;
            ~~^~~
foo.cc: In function 'long long int query(long long int, long long int, long long int, long long int, long long int)':
foo.cc:49:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid = l + r >> 1, res = 0;
            ~~^~~
foo.cc: In function 'int main()':
foo.cc:57: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:58:35: 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("%lld", a + i);
                              ~~~~~^~~~~~~~~~~~~~~
foo.cc:62:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%lld", &opt);
   ~~~~~^~~~~~~~~~~~~~
foo.cc:65:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%lld%lld%lld", &l, &r, &x);
    ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:69:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%lld%lld", &l, &r);
    ~~~~~^~~~~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Accepted 289ms 5.262 MiB
#2 Time Exceeded ≥1483ms ≥10.973 MiB
#3 Time Exceeded ≥1543ms ≥37.664 MiB
#4 Time Exceeded ≥1602ms ≥40.738 MiB
#5 Time Exceeded ≥1713ms ≥40.754 MiB
#6 Time Exceeded ≥2270ms ≥41.477 MiB

信息

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