結果

問題 No.208 王将
ユーザー niyarin
提出日時 2016-11-08 17:32:55
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 207 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-25 04:53:45
合計ジャッジ時間 994 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 21 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

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




    



0