結果

問題 No.208 王将
ユーザー brthyyjpbrthyyjp
提出日時 2021-12-09 19:23:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 184 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 87,212 KB
実行使用メモリ 71,636 KB
最終ジャッジ日時 2023-09-24 11:03:54
合計ジャッジ時間 3,138 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,132 KB
testcase_01 AC 68 ms
71,168 KB
testcase_02 AC 69 ms
71,572 KB
testcase_03 AC 68 ms
71,384 KB
testcase_04 AC 73 ms
71,340 KB
testcase_05 AC 68 ms
71,556 KB
testcase_06 AC 67 ms
71,468 KB
testcase_07 AC 67 ms
71,320 KB
testcase_08 AC 66 ms
71,536 KB
testcase_09 AC 64 ms
71,448 KB
testcase_10 AC 65 ms
71,524 KB
testcase_11 AC 66 ms
71,176 KB
testcase_12 AC 65 ms
71,280 KB
testcase_13 AC 66 ms
71,632 KB
testcase_14 AC 66 ms
71,396 KB
testcase_15 AC 64 ms
71,420 KB
testcase_16 AC 64 ms
71,280 KB
testcase_17 AC 66 ms
71,456 KB
testcase_18 AC 65 ms
71,472 KB
testcase_19 AC 67 ms
71,328 KB
testcase_20 AC 65 ms
71,480 KB
testcase_21 AC 65 ms
71,292 KB
testcase_22 AC 67 ms
71,412 KB
testcase_23 AC 67 ms
71,572 KB
testcase_24 AC 67 ms
71,636 KB
権限があれば一括ダウンロードができます

ソースコード

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