結果

問題 No.1860 Magnets
ユーザー first_vilfirst_vil
提出日時 2022-03-04 21:23:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 490 bytes
コンパイル時間 778 ms
コンパイル使用メモリ 86,824 KB
実行使用メモリ 71,376 KB
最終ジャッジ日時 2023-09-25 23:25:51
合計ジャッジ時間 4,160 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,084 KB
testcase_01 AC 73 ms
71,344 KB
testcase_02 AC 73 ms
71,160 KB
testcase_03 AC 73 ms
71,088 KB
testcase_04 AC 71 ms
71,284 KB
testcase_05 AC 72 ms
71,060 KB
testcase_06 AC 72 ms
71,280 KB
testcase_07 AC 73 ms
71,068 KB
testcase_08 AC 75 ms
71,244 KB
testcase_09 AC 79 ms
71,376 KB
testcase_10 AC 74 ms
71,344 KB
testcase_11 AC 73 ms
71,164 KB
testcase_12 AC 72 ms
71,236 KB
testcase_13 AC 74 ms
71,044 KB
testcase_14 AC 73 ms
71,068 KB
testcase_15 AC 74 ms
71,032 KB
testcase_16 AC 77 ms
71,296 KB
testcase_17 AC 73 ms
71,288 KB
testcase_18 AC 73 ms
71,092 KB
testcase_19 AC 78 ms
71,048 KB
testcase_20 AC 76 ms
71,348 KB
testcase_21 AC 74 ms
71,112 KB
testcase_22 AC 74 ms
71,104 KB
testcase_23 AC 74 ms
71,064 KB
testcase_24 AC 72 ms
71,048 KB
testcase_25 AC 72 ms
71,044 KB
testcase_26 AC 74 ms
71,304 KB
testcase_27 AC 73 ms
71,320 KB
testcase_28 AC 73 ms
71,188 KB
testcase_29 AC 76 ms
71,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

int1 = lambda x: int(x) - 1

# input = lambda: sys.stdin.buffer.readline()
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
i1 = lambda: int1(input())
mi = lambda: map(int, input().split())
mi1 = lambda: map(int1, input().split())
li = lambda: list(mi())
li1 = lambda: list(mi1())
lli = lambda n: [li() for _ in range(n)]

INF = float("inf")
mod = int(1e9 + 7)
# mod = 998244353

a, b = mi()
a, b = min(a, b), max(a, b)
print(a + b + max(0, (b - 1) - a))
0