/ AOCode /

记录详情

Accepted

foo.cc: In member function 'void SegTree::build(SegTree::Node*, long long int, long long int)':
foo.cc:23:26: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   23 |     build(cur->Lchild,L,L+R>>1);
      |                         ~^~
foo.cc:24:25: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   24 |     build(cur->Rchild,(L+R>>1)+1,R);
      |                        ~^~
foo.cc: In member function 'long long int SegTree::querysum(SegTree::Node*, long long int, long long int)':
foo.cc:35:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   35 |     if(L<=cur->Left+cur->Right>>1)
      |           ~~~~~~~~~^~~~~~~~~~~
foo.cc:37:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   37 |     if(R> cur->Left+cur->Right>>1)
      |           ~~~~~~~~~^~~~~~~~~~~
foo.cc: In member function 'long long int SegTree::querymax(SegTree::Node*, long long int, long long int)':
foo.cc:49:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   49 |     if(L<=cur->Left+cur->Right>>1)
      |           ~~~~~~~~~^~~~~~~~~~~
foo.cc:51:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   51 |     if(R> cur->Left+cur->Right>>1)
      |           ~~~~~~~~~^~~~~~~~~~~
foo.cc: In member function 'long long int SegTree::querymin(SegTree::Node*, long long int, long long int)':
foo.cc:63:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   63 |     if(L<=cur->Left+cur->Right>>1)
      |           ~~~~~~~~~^~~~~~~~~~~
foo.cc:65:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   65 |     if(R> cur->Left+cur->Right>>1)
      |           ~~~~~~~~~^~~~~~~~~~~
foo.cc: In member function 'void SegTree::update(SegTree::Node*, long long int, long long int)':
foo.cc:80:22: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   80 |     if(Dex<=cur->Left+cur->Right>>1)update(cur->Lchild,Dex,Change);
      |             ~~~~~~~~~^~~~~~~~~~~
foo.cc:81:22: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   81 |     if(Dex> cur->Left+cur->Right>>1)update(cur->Rchild,Dex,Change);
      |             ~~~~~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 347ms 6.242 MiB
#2 Accepted 121ms 4.238 MiB
#3 Accepted 89ms 3.246 MiB
#4 Accepted 258ms 5.992 MiB
#5 Accepted 286ms 3.992 MiB
#6 Accepted 196ms 3.992 MiB
#7 Accepted 171ms 4.492 MiB
#8 Accepted 127ms 2.742 MiB
#9 Accepted 212ms 3.617 MiB
#10 Accepted 324ms 5.992 MiB

信息

递交者
类型
递交
题目
P1038 The FLF Tokens
比赛
AOCode Round #4
语言
C++
递交时间
2022-04-29 20:04:38
评测时间
2022-04-29 20:04:38
评测机
分数
100
总耗时
2134ms
峰值内存
6.242 MiB