結果

問題 No.1860 Magnets
ユーザー titan23titan23
提出日時 2022-06-28 23:16:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 282 ms
コンパイル使用メモリ 82,428 KB
実行使用メモリ 53,896 KB
最終ジャッジ日時 2024-05-01 13:37:06
合計ジャッジ時間 2,383 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,228 KB
testcase_01 AC 37 ms
52,760 KB
testcase_02 AC 37 ms
53,460 KB
testcase_03 AC 37 ms
52,868 KB
testcase_04 AC 36 ms
53,604 KB
testcase_05 AC 37 ms
52,588 KB
testcase_06 AC 36 ms
53,896 KB
testcase_07 AC 37 ms
52,396 KB
testcase_08 AC 37 ms
52,484 KB
testcase_09 AC 37 ms
52,640 KB
testcase_10 AC 37 ms
52,272 KB
testcase_11 AC 37 ms
52,692 KB
testcase_12 AC 37 ms
52,068 KB
testcase_13 AC 37 ms
53,676 KB
testcase_14 AC 37 ms
52,356 KB
testcase_15 AC 36 ms
53,336 KB
testcase_16 AC 36 ms
53,320 KB
testcase_17 AC 36 ms
52,568 KB
testcase_18 AC 37 ms
52,612 KB
testcase_19 AC 36 ms
52,832 KB
testcase_20 AC 37 ms
52,660 KB
testcase_21 AC 36 ms
52,204 KB
testcase_22 AC 36 ms
52,832 KB
testcase_23 AC 37 ms
52,712 KB
testcase_24 AC 36 ms
52,204 KB
testcase_25 AC 36 ms
53,016 KB
testcase_26 AC 37 ms
52,528 KB
testcase_27 AC 37 ms
53,684 KB
testcase_28 AC 36 ms
52,532 KB
testcase_29 AC 36 ms
51,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()

#  -----------------------  #

a, b = map(int, input().split())
print(2*min(a,b) + (2*(max(a,b)-min(a,b))-1 if a != b else 0))
0