結果

問題 No.208 王将
ユーザー rlangevinrlangevin
提出日時 2023-01-09 22:45:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 1,000 ms
コード長 142 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 86,960 KB
実行使用メモリ 71,480 KB
最終ジャッジ日時 2023-08-22 21:52:25
合計ジャッジ時間 3,291 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,480 KB
testcase_01 AC 75 ms
71,248 KB
testcase_02 AC 76 ms
71,232 KB
testcase_03 AC 75 ms
70,960 KB
testcase_04 AC 74 ms
70,952 KB
testcase_05 AC 75 ms
71,324 KB
testcase_06 AC 73 ms
71,096 KB
testcase_07 AC 75 ms
71,156 KB
testcase_08 AC 75 ms
71,344 KB
testcase_09 AC 75 ms
71,256 KB
testcase_10 AC 75 ms
71,228 KB
testcase_11 AC 74 ms
71,228 KB
testcase_12 AC 74 ms
71,476 KB
testcase_13 AC 74 ms
71,248 KB
testcase_14 AC 74 ms
70,960 KB
testcase_15 AC 76 ms
71,272 KB
testcase_16 AC 74 ms
71,164 KB
testcase_17 AC 73 ms
71,320 KB
testcase_18 AC 72 ms
71,252 KB
testcase_19 AC 72 ms
71,076 KB
testcase_20 AC 72 ms
71,388 KB
testcase_21 AC 74 ms
71,172 KB
testcase_22 AC 73 ms
71,304 KB
testcase_23 AC 72 ms
71,240 KB
testcase_24 AC 74 ms
71,208 KB
権限があれば一括ダウンロードができます

ソースコード

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