/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'll calc(int, ll, ll)':
/in/foo.cc:35:51: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
 inline ll calc(int u,ll s,ll h){return ch[u][1]?(s-h<<1):((a[u]<<1)>s?(s-a[u]<<1):s-1);}  //计算冲突值
                                                  ~^~
/in/foo.cc:35:73: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
 inline ll calc(int u,ll s,ll h){return ch[u][1]?(s-h<<1):((a[u]<<1)>s?(s-a[u]<<1):s-1);}  //计算冲突值
                                                                        ~^~~~~
/in/foo.cc: In function 'void rot(int)':
/in/foo.cc:41:28: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
     if(ch[fa][d]=ch[o][d^1])f[ch[fa][d]]=fa;
                            ^
/in/foo.cc: In function 'void work(int)':
/in/foo.cc:61:34: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
     ans+=(maxn<<1)>sum[u]?(sum[u]-maxn<<1):sum[u]-1;
                            ~~~~~~^~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 484.0 KiB
#2 Accepted 86ms 12.598 MiB
#3 Accepted 86ms 12.582 MiB
#4 Accepted 28ms 11.121 MiB
#5 Accepted 29ms 11.215 MiB
#6 Accepted 87ms 13.191 MiB
#7 Accepted 87ms 13.191 MiB
#8 Accepted 92ms 13.195 MiB
#9 Accepted 559ms 27.645 MiB
#10 Accepted 479ms 27.699 MiB

信息

递交者
类型
递交
题目
P2043 历史
语言
C++
递交时间
2022-05-22 09:48:20
评测时间
2022-05-22 09:48:20
评测机
分数
100
总耗时
1539ms
峰值内存
27.699 MiB