結果

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

ソースコード

diff #

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




    



0