結果

問題 No.208 王将
ユーザー togatoga
提出日時 2015-09-06 08:57:54
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 1,000 ms
コード長 189 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-10-09 16:27:08
合計ジャッジ時間 1,151 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
x,y = map(int, raw_input().split())
a,b = map(int, raw_input().split())
if (x != y):
    print max(x, y)
    sys.exit(0)
if (a < x and a == b):
    print x + 1
else:
    print x
0