/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:13:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   13 |                 if(w==11&&w>l&&w-l>=2||l==11&&l>w&&l-w>=2) {
      |                    ~~~~~~~~~~^~~~~~~~
foo.cc:17:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   17 |                 } else if(w>=11&&w>l&&w-l>=2||l>=11&&l>w&&l-w>=2) {
      |                           ~~~~~~~~~~^~~~~~~~
foo.cc:29:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   29 |                 if(w==21&&w>l&&w-l>=2||l==21&&l>w&&l-w>2) {
      |                    ~~~~~~~~~~^~~~~~~~
foo.cc:33:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   33 |                 } else if(w>=21&&w>l&&w-l>=2||l>=21&&l>w&&l-w>=2) {
      |                           ~~~~~~~~~~^~~~~~~~
foo.cc:4:21: warning: 's' may be used uninitialized [-Wmaybe-uninitialized]
    4 |         int w=0,l=0,s;
      |                     ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 516.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Accepted 5ms 332.0 KiB
#4 Accepted 5ms 436.0 KiB
#5 Accepted 7ms 412.0 KiB
#6 Accepted 29ms 584.0 KiB
#7 Accepted 13ms 412.0 KiB
#8 Accepted 4ms 516.0 KiB
#9 Accepted 3ms 416.0 KiB
#10 Accepted 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1217 乒乓球
语言
C++
递交时间
2023-12-16 15:17:05
评测时间
2023-12-16 15:17:05
评测机
分数
100
总耗时
83ms
峰值内存
584.0 KiB