結果

問題 No.208 王将
ユーザー rlangevin
提出日時 2023-01-09 22:45:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 1,000 ms
コード長 142 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 82,496 KB
実行使用メモリ 53,492 KB
最終ジャッジ日時 2024-12-18 00:18:15
合計ジャッジ時間 1,986 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

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