結果

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

ソースコード

diff #

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


    



0