結果

問題 No.208 王将
ユーザー brthyyjp
提出日時 2021-12-09 19:23:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 1,000 ms
コード長 184 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 82,428 KB
実行使用メモリ 53,448 KB
最終ジャッジ日時 2024-07-17 11:56:26
合計ジャッジ時間 1,968 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

x,y = map(int, input().split())
x2,y2 = map(int, input().split())
if x != y:
    print(max(x, y))
else:
    if x2 == y2 and 0 <= x2 <= x:
        print(x+1)
    else:
        print(x)
0