/ CWOI /

记录详情

Accepted

/in/foo.cc: In function 'void Build(int, int, int)':
/in/foo.cc:21:33: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define trmid(seq) ((pt(seq).l) + (pt(seq).r) >> 1)
                     ~~~~~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc:39:12: note: in expansion of macro 'trmid'
  int mid = trmid(seq);
            ^~~~~
/in/foo.cc: In function 'void Update(int, int, int)':
/in/foo.cc:21:33: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define trmid(seq) ((pt(seq).l) + (pt(seq).r) >> 1)
                     ~~~~~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc:50:12: note: in expansion of macro 'trmid'
  int mid = trmid(seq);
            ^~~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 356.0 KiB
#2 Accepted 3ms 2.25 MiB
#3 Accepted 3ms 2.246 MiB
#4 Accepted 74ms 6.25 MiB
#5 Accepted 33ms 3.0 MiB
#6 Accepted 46ms 2.41 MiB
#7 Accepted 51ms 1.375 MiB
#8 Accepted 37ms 2.688 MiB
#9 Accepted 73ms 6.477 MiB
#10 Accepted 74ms 6.125 MiB

信息

递交者
类型
递交
题目
2017.07.18 P2 位运算
语言
C++
递交时间
2017-07-18 19:52:26
评测时间
2017-07-18 19:52:26
评测机
分数
100
总耗时
402ms
峰值内存
6.477 MiB