/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void rotate(int)':
/in/foo.cc:36:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
     else lc[x] = y, rc[y] = b; upd(y); upd(x);
     ^~~~
/in/foo.cc:36:32: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
     else lc[x] = y, rc[y] = b; upd(y); upd(x);
                                ^~~
/in/foo.cc: In function 'void build(int, int, int)':
/in/foo.cc:70:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid = l + r >> 1;
               ~~^~~
/in/foo.cc: In function 'void change(int, int, int, int, int, int)':
/in/foo.cc:82:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid = l + r >> 1; down(p);
               ~~^~~
/in/foo.cc: In function 'int query(int, int, int, int, int)':
/in/foo.cc:91:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid = l + r >> 1, res = 0; down(p);
               ~~^~~
# 状态 耗时 内存占用
#1 Accepted 11ms 8.25 MiB
#2 Accepted 241ms 23.25 MiB
#3 Accepted 243ms 21.172 MiB
#4 Accepted 325ms 23.207 MiB
#5 Accepted 307ms 20.695 MiB
#6 Accepted 322ms 18.137 MiB
#7 Accepted 150ms 17.75 MiB
#8 Accepted 212ms 16.289 MiB
#9 Accepted 282ms 21.145 MiB
#10 Accepted 242ms 21.953 MiB

信息

递交者
类型
递交
题目
P2014 树点涂色
语言
C++
递交时间
2017-12-03 19:13:04
评测时间
2017-12-03 19:13:04
评测机
分数
100
总耗时
2341ms
峰值内存
23.25 MiB