/ Vijos /

记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:22:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         if (_11WinCount >= 11 && (_11WinCount - _11LoseCount >= 2) || _11LoseCount >= 11 && (_11LoseCount - _11WinCount >= 2))
             ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:37:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         if (_11WinCount >= 21 && (_11WinCount - _11LoseCount >= 2) || _11LoseCount >= 21 && (_11LoseCount - _11WinCount >= 2))
             ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:4:61: warning: unused variable '_21LoseCount' [-Wunused-variable]
     int _11WinCount = 0, _11LoseCount = 0, _21WinCount = 0, _21LoseCount = 0;
                                                             ^~~~~~~~~~~~
/in/foo.c:4:44: warning: unused variable '_21WinCount' [-Wunused-variable]
     int _11WinCount = 0, _11LoseCount = 0, _21WinCount = 0, _21LoseCount = 0;
                                            ^~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 256.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 2ms 256.0 KiB
#4 Accepted 2ms 188.0 KiB
#5 Accepted 3ms 256.0 KiB
#6 Accepted 4ms 380.0 KiB
#7 Accepted 6ms 256.0 KiB
#8 Accepted 1ms 256.0 KiB
#9 Accepted 1ms 256.0 KiB
#10 Accepted 2ms 256.0 KiB

信息

递交者
类型
递交
题目
P1217 乒乓球
语言
C
递交时间
2017-04-24 11:16:34
评测时间
2017-04-24 11:16:34
评测机
分数
100
总耗时
29ms
峰值内存
380.0 KiB