/ Vijos /

记录详情

Wrong Answer

/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>2 || m==2 && a[2]>n/10 || m==2 && a[2]==n/10 && a[1]>n%10) {book=0;return;}
            ~~~~~^~~~~~~~~~~~
/in/foo.cc:38:52: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(m>2 || m==2 && a[2]>n/10 || m==2 && 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 3ms 372.0 KiB
#2 Accepted 4ms 344.0 KiB
#3 Wrong Answer 3ms 356.0 KiB
#4 Accepted 2ms 348.0 KiB
#5 Wrong Answer 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1300 儿子游戏机
语言
C++
递交时间
2018-02-12 22:51:21
评测时间
2018-02-12 22:51:21
评测机
分数
50
总耗时
17ms
峰值内存
384.0 KiB