結果

問題 No.208 王将
ユーザー tookunn_1213
提出日時 2015-12-13 11:52:03
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 1,000 ms
コード長 171 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-09 16:28:55
合計ジャッジ時間 1,077 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

x1,y1 = map(int,raw_input().split())
x2,y2 = map(int,raw_input().split())
if x1 != y1:
	print max(x1,y1)
else:
	if x2 < x1 and x2 == y2:
		print (x1 + 1)
	else:
		print x1
0