/ Vijos /

记录详情

Accepted

foo.cc: In function 'void build(int&, int, int)':
foo.cc:20:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid=(l+r>>1);
              ~^~
foo.cc: In function 'void updata(int&, int, int, int, int)':
foo.cc:30:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid=(l+r>>1);
              ~^~
foo.cc: In function 'int query(int, int, int, int, int)':
foo.cc:38:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid=(l+r>>1);
              ~^~
foo.cc: In function 'int main()':
foo.cc:55:35: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
         int x=read(),y=read(),k=(y-x>>1)+1;
                                  ~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 1ms 384.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 2ms 532.0 KiB
#6 Accepted 27ms 576.0 KiB
#7 Accepted 42ms 612.0 KiB
#8 Accepted 53ms 608.0 KiB
#9 Accepted 255ms 1.359 MiB
#10 Accepted 110ms 1.215 MiB

信息

递交者
类型
递交
题目
P1459 车展
语言
C++
递交时间
2021-10-23 20:20:09
评测时间
2021-10-23 20:20:09
评测机
分数
100
总耗时
500ms
峰值内存
1.359 MiB