/ 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 'int main()':
/in/foo.cc:68:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(j=0;j<st.size();j++)
           ~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Wrong Answer 3ms 256.0 KiB
#3 Accepted 3ms 340.0 KiB
#4 Accepted 4ms 348.0 KiB
#5 Wrong Answer 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1300 儿子游戏机
语言
C++
递交时间
2018-01-08 21:14:25
评测时间
2018-01-08 21:14:25
评测机
分数
55
总耗时
19ms
峰值内存
384.0 KiB