Time Exceeded

foo.cc: In function 'void build(int, int, int)':
foo.cc:32:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
         int mid = l + r >> 1;
                   ~~^~~
foo.cc: In function 'void modify(int, int, int)':
foo.cc:49:23: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid = tr[u].l + tr[u].r >> 1;
               ~~~~~~~~^~~~~~~~~
foo.cc: In function 'll query(int, int, int)':
foo.cc:61:23: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid = tr[u].r + tr[u].l >> 1;
               ~~~~~~~~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:75:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &n);
     ~~~~~^~~~~~~~~~
foo.cc:80:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%lld", &w[i]);
         ~~~~~^~~~~~~~~~~~~~~
foo.cc:82:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &m);
     ~~~~~^~~~~~~~~~
foo.cc:85:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d%d", &t, &a, &b);
         ~~~~~^~~~~~~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Time Exceeded ≥1451ms ≥8.695 MiB
#2 Time Exceeded ≥1449ms ≥8.668 MiB
#3 Wrong Answer Read 21004622, expect 21004621. 602ms 3.691 MiB
#4 Wrong Answer Read 166652853681, expect 166652853674. 822ms 8.797 MiB
#5 Wrong Answer Read 33292339, expect 33292322. 956ms 8.703 MiB
#6 Accepted 3ms 460.0 KiB
#7 Wrong Answer Read 3250, expect 3249. 2ms 388.0 KiB
#8 Wrong Answer Read 1140777, expect 1140763. 46ms 1.238 MiB
#9 Time Exceeded ≥1715ms ≥5.531 MiB
#10 Time Exceeded ≥1134ms ≥8.699 MiB

信息

递交者
类型
递交
题目
「一本通 4.3 练习 2」花神游历各国
语言
C++
递交时间
2021-05-10 21:13:15
评测时间
2021-05-11 09:41:53
评测机
分数
10
总耗时
≥8186ms
峰值内存
≥8.797 MiB