/ Vijos /

记录详情

Accepted

foo.cc: In function 'void write(ll, char)':
foo.cc:26:13: warning: array subscript has type 'char' [-Wchar-subscripts]
     do a[++s]=x%10|48;while(x/=10);
             ^
foo.cc:27:19: warning: array subscript has type 'char' [-Wchar-subscripts]
     do putchar(a[s]);while(--s);
                   ^
foo.cc: In function 'void add(int, int, ll)':
foo.cc:43:12: warning: operation on 'l' may be undefined [-Wsequence-point]
         a[l>>=1]=max(a[l],a[l^1])+b[l>>1];
           ~^~~~
foo.cc:43:12: warning: operation on 'l' may be undefined [-Wsequence-point]
foo.cc:44:12: warning: operation on 'r' may be undefined [-Wsequence-point]
         a[r>>=1]=max(a[r],a[r^1])+b[r>>1];
           ~^~~~
foo.cc:44:12: warning: operation on 'r' may be undefined [-Wsequence-point]
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 19ms 2.703 MiB
#2 Accepted 23ms 3.277 MiB
#3 Accepted 14ms 3.691 MiB
#4 Accepted 7ms 3.102 MiB
#5 Accepted 26ms 3.539 MiB
#6 Accepted 21ms 2.961 MiB
#7 Accepted 22ms 3.137 MiB
#8 Accepted 23ms 3.133 MiB
#9 Accepted 22ms 2.66 MiB
#10 Accepted 29ms 3.184 MiB

信息

递交者
类型
递交
题目
P1659 河蟹王国
语言
C++
递交时间
2021-11-30 11:01:10
评测时间
2021-11-30 11:01:10
评测机
分数
100
总耗时
210ms
峰值内存
3.691 MiB