結果

問題 No.208 王将
ユーザー gorugo30gorugo30
提出日時 2021-03-17 20:43:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 1,000 ms
コード長 154 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 82,296 KB
実行使用メモリ 53,908 KB
最終ジャッジ日時 2024-04-27 13:15:54
合計ジャッジ時間 2,003 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
52,668 KB
testcase_01 AC 42 ms
53,112 KB
testcase_02 AC 40 ms
52,320 KB
testcase_03 AC 40 ms
52,208 KB
testcase_04 AC 38 ms
51,804 KB
testcase_05 AC 39 ms
52,800 KB
testcase_06 AC 39 ms
52,616 KB
testcase_07 AC 38 ms
52,888 KB
testcase_08 AC 39 ms
52,636 KB
testcase_09 AC 41 ms
52,492 KB
testcase_10 AC 38 ms
53,296 KB
testcase_11 AC 39 ms
53,908 KB
testcase_12 AC 39 ms
52,076 KB
testcase_13 AC 40 ms
52,268 KB
testcase_14 AC 39 ms
52,908 KB
testcase_15 AC 39 ms
52,604 KB
testcase_16 AC 39 ms
52,560 KB
testcase_17 AC 38 ms
52,944 KB
testcase_18 AC 38 ms
52,856 KB
testcase_19 AC 39 ms
53,212 KB
testcase_20 AC 38 ms
53,056 KB
testcase_21 AC 39 ms
52,704 KB
testcase_22 AC 39 ms
53,096 KB
testcase_23 AC 39 ms
52,792 KB
testcase_24 AC 41 ms
52,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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