/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:24:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if((w==11 || l==11) && (abs(l-w)>=2) || ((w>11 || l>11) && (abs(l-w)==2)))
      ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/in/foo.cc:38:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if((W==21 || L==21) && (abs(L-W)>=2) || ((W>21 || L>21) && (abs(L-W)==2)))
      ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/in/foo.cc:6:26: warning: unused variable 'ww' [-Wunused-variable]
  int w=0,l=0,W=0,L=0,n=0,ww[10000],ll[10000],WW[10000],LL[10000],s=0,S=0;
                          ^~
/in/foo.cc:6:36: warning: unused variable 'll' [-Wunused-variable]
  int w=0,l=0,W=0,L=0,n=0,ww[10000],ll[10000],WW[10000],LL[10000],s=0,S=0;
                                    ^~
/in/foo.cc:6:46: warning: unused variable 'WW' [-Wunused-variable]
  int w=0,l=0,W=0,L=0,n=0,ww[10000],ll[10000],WW[10000],LL[10000],s=0,S=0;
                                              ^~
/in/foo.cc:6:56: warning: unused variable 'LL' [-Wunused-variable]
  int w=0,l=0,W=0,L=0,n=0,ww[10000],ll[10000],WW[10000],LL[10000],s=0,S=0;
                                                        ^~
# 状态 耗时 内存占用
#1 Accepted 1ms 212.0 KiB
#2 Accepted 1ms 316.0 KiB
#3 Accepted 2ms 316.0 KiB
#4 Accepted 2ms 204.0 KiB
#5 Accepted 3ms 316.0 KiB
#6 Accepted 10ms 312.0 KiB
#7 Accepted 6ms 332.0 KiB
#8 Accepted 1ms 316.0 KiB
#9 Accepted 1ms 316.0 KiB
#10 Accepted 1ms 204.0 KiB

信息

递交者
类型
递交
题目
P1217 乒乓球
语言
C++
递交时间
2018-10-24 21:08:30
评测时间
2018-10-24 21:08:30
评测机
分数
100
总耗时
32ms
峰值内存
332.0 KiB