/ ZYCode /

记录详情

Accepted

foo.cc: In member function 'void Segtree::build(long long int, long long int, long long int)':
foo.cc:14:29: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   14 |         #define mid (tr[p].L+tr[p].R>>1)
      |                      ~~~~~~~^~~~~~~~
foo.cc:36:30: note: in expansion of macro 'mid'
   36 |                 build(p<<1,l,mid);
      |                              ^~~
foo.cc:14:29: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   14 |         #define mid (tr[p].L+tr[p].R>>1)
      |                      ~~~~~~~^~~~~~~~
foo.cc:37:30: note: in expansion of macro 'mid'
   37 |                 build(p<<1|1,mid+1,r);
      |                              ^~~
foo.cc: In member function 'void Segtree::upd_bian(long long int, long long int)':
foo.cc:14:29: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   14 |         #define mid (tr[p].L+tr[p].R>>1)
      |                      ~~~~~~~^~~~~~~~
foo.cc:42:23: note: in expansion of macro 'mid'
   42 |                 if(x<=mid)upd_bian(p<<1,x);
      |                       ^~~
foo.cc: In member function 'void Segtree::upd_dian(long long int, long long int)':
foo.cc:14:29: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   14 |         #define mid (tr[p].L+tr[p].R>>1)
      |                      ~~~~~~~^~~~~~~~
foo.cc:51:23: note: in expansion of macro 'mid'
   51 |                 if(x<=mid)upd_dian(p<<1,x);
      |                       ^~~
foo.cc: In member function 'Segtree::node Segtree::query(long long int, long long int, long long int)':
foo.cc:14:29: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   14 |         #define mid (tr[p].L+tr[p].R>>1)
      |                      ~~~~~~~^~~~~~~~
foo.cc:57:24: note: in expansion of macro 'mid'
   57 |                 if(qr<=mid)return query(p<<1,ql,qr);
      |                        ^~~
foo.cc:14:29: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   14 |         #define mid (tr[p].L+tr[p].R>>1)
      |                      ~~~~~~~^~~~~~~~
foo.cc:58:23: note: in expansion of macro 'mid'
   58 |                 if(ql>mid)return query(p<<1|1,ql,qr);
      |                       ^~~
foo.cc:14:29: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   14 |         #define mid (tr[p].L+tr[p].R>>1)
      |                      ~~~~~~~^~~~~~~~
foo.cc:59:41: note: in expansion of macro 'mid'
   59 |                 return Up(query(p<<1,ql,mid),query(p<<1|1,mid+1,qr));
      |                                         ^~~
foo.cc:14:29: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   14 |         #define mid (tr[p].L+tr[p].R>>1)
      |                      ~~~~~~~^~~~~~~~
foo.cc:59:59: note: in expansion of macro 'mid'
   59 |                 return Up(query(p<<1,ql,mid),query(p<<1|1,mid+1,qr));
      |                                                           ^~~
Found 20 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 5ms 540.0 KiB
#2 Accepted 4ms 408.0 KiB
#3 Accepted 3ms 412.0 KiB
#4 Accepted 4ms 540.0 KiB
#5 Accepted 203ms 18.691 MiB
#6 Accepted 209ms 18.676 MiB
#7 Accepted 213ms 18.645 MiB
#8 Accepted 230ms 18.582 MiB
#9 Accepted 230ms 18.605 MiB
#10 Accepted 230ms 18.629 MiB
#11 Accepted 203ms 18.727 MiB
#12 Accepted 246ms 18.77 MiB
#13 Accepted 211ms 18.77 MiB
#14 Accepted 185ms 18.27 MiB
#15 Accepted 218ms 18.23 MiB
#16 Accepted 208ms 18.27 MiB
#17 Accepted 206ms 18.477 MiB
#18 Accepted 205ms 18.477 MiB
#19 Accepted 123ms 18.434 MiB
#20 Accepted 220ms 18.52 MiB

信息

递交者
类型
递交
题目
P1033 【ZYCode R6】Retribution
语言
C++
递交时间
2023-10-20 14:32:21
评测时间
2023-10-20 14:32:49
评测机
分数
100
总耗时
3366ms
峰值内存
18.77 MiB