/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void zheng()':
/in/foo.cc:11:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     if(ans[i]==1 && a[i]==3 || ans[i]==3 && a[i]==1) ans[i]=2;
        ~~~~~~~~~~^~~~~~~~~~
/in/foo.cc:21:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(lans>2 || lans==2 && ans[2]>n/10 || lans==2 && ans[2]==n/10 && ans[1]>n%10) {book=0;return;}
               ~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc:21:65: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(lans>2 || lans==2 && ans[2]>n/10 || lans==2 && ans[2]==n/10 && ans[1]>n%10) {book=0;return;}
                                         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'void fu()':
/in/foo.cc:38:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(m>3 || m==3 && a[2]>n/10 || m==3 && a[2]==n/10 && a[1]>n%10) {book=0;return;}
            ~~~~~^~~~~~~~~~~~
/in/foo.cc:38:52: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(m>3 || m==3 && a[2]>n/10 || m==3 && a[2]==n/10 && a[1]>n%10) {book=0;return;}
                                 ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:71:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(j=0;j<st.size();j++)
           ~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 368.0 KiB
#2 Accepted 4ms 256.0 KiB
#3 Accepted 3ms 256.0 KiB
#4 Accepted 2ms 352.0 KiB
#5 Accepted 4ms 336.0 KiB

信息

递交者
类型
递交
题目
P1300 儿子游戏机
语言
C++
递交时间
2018-03-01 17:38:30
评测时间
2018-03-01 17:38:30
评测机
分数
100
总耗时
16ms
峰值内存
368.0 KiB