結果

問題 No.208 王将
コンテスト
ユーザー yaoshimax
提出日時 2015-05-24 17:47:31
言語 PyPy2
(7.3.20)
結果
WA  
実行時間 -
コード長 209 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 142 ms
コンパイル使用メモリ 77,436 KB
最終ジャッジ日時 2025-12-03 15:16:00
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 21 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

x,y=map(int,raw_input().split())
x2,y2=map(int,raw_input().split())
ans=max(x,y)
if x==0 and x2==0 and y2<y:
    ans+=1
if y==0 and y2==0 and x2<x:
    ans+=1
if x==y and x2==y2 and x2<x:
    ans+=1
print ans
0