/ Vijos /

记录详情

Accepted

/in/foo.cc: In member function 'void chair_tree::modify(int, int, int)':
/in/foo.cc:23:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  #define mid (l + r >> 1)
               ~~^~~
/in/foo.cc:27:14: note: in expansion of macro 'mid'
   if (pos <= mid) (ls = new(ls)chair_tree) -> modify(l, mid, pos);
              ^~~
/in/foo.cc:23:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  #define mid (l + r >> 1)
               ~~^~~
/in/foo.cc:27:57: note: in expansion of macro 'mid'
   if (pos <= mid) (ls = new(ls)chair_tree) -> modify(l, mid, pos);
                                                         ^~~
/in/foo.cc:23:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  #define mid (l + r >> 1)
               ~~^~~
/in/foo.cc:28:43: note: in expansion of macro 'mid'
   else (rs = new(rs)chair_tree) -> modify(mid + 1, r, pos);
                                           ^~~
/in/foo.cc: In function 'int kth(chair_tree*, chair_tree*, int, int, int)':
/in/foo.cc:36:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l + r >> 1)
              ~~^~~
/in/foo.cc:40:51: note: in expansion of macro 'mid'
  if (k <= tmp_sz) return kth(A -> ls, B -> ls, l, mid, k);
                                                   ^~~
/in/foo.cc:36:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l + r >> 1)
              ~~^~~
/in/foo.cc:41:36: note: in expansion of macro 'mid'
  else return kth(A -> rs, B -> rs, mid + 1, r, k - tmp_sz);
                                    ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 332.0 KiB
#2 Accepted 3ms 512.0 KiB
#3 Accepted 8ms 1.805 MiB
#4 Accepted 14ms 2.875 MiB
#5 Accepted 11ms 3.75 MiB
#6 Accepted 24ms 7.633 MiB
#7 Accepted 59ms 15.984 MiB
#8 Accepted 150ms 33.375 MiB
#9 Accepted 174ms 42.59 MiB
#10 Accepted 186ms 42.484 MiB

信息

递交者
类型
递交
题目
P1081 野生动物园
语言
C++
递交时间
2017-07-22 11:28:24
评测时间
2017-07-22 11:28:24
评测机
分数
100
总耗时
634ms
峰值内存
42.59 MiB