結果

問題 No.1860 Magnets
ユーザー roarisroaris
提出日時 2022-03-04 21:42:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 86,832 KB
実行使用メモリ 71,852 KB
最終ジャッジ日時 2023-09-26 00:26:41
合計ジャッジ時間 4,147 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
71,384 KB
testcase_01 AC 89 ms
71,584 KB
testcase_02 AC 88 ms
71,564 KB
testcase_03 AC 89 ms
71,608 KB
testcase_04 AC 90 ms
71,832 KB
testcase_05 AC 90 ms
71,604 KB
testcase_06 AC 90 ms
71,752 KB
testcase_07 AC 88 ms
71,792 KB
testcase_08 AC 89 ms
71,564 KB
testcase_09 AC 89 ms
71,524 KB
testcase_10 AC 89 ms
71,580 KB
testcase_11 AC 88 ms
71,500 KB
testcase_12 AC 89 ms
71,768 KB
testcase_13 AC 90 ms
71,608 KB
testcase_14 AC 90 ms
71,768 KB
testcase_15 AC 89 ms
71,336 KB
testcase_16 AC 92 ms
71,852 KB
testcase_17 AC 91 ms
71,696 KB
testcase_18 AC 86 ms
71,768 KB
testcase_19 AC 87 ms
71,688 KB
testcase_20 AC 87 ms
71,560 KB
testcase_21 AC 87 ms
71,572 KB
testcase_22 AC 87 ms
71,672 KB
testcase_23 AC 88 ms
71,660 KB
testcase_24 AC 88 ms
71,524 KB
testcase_25 AC 87 ms
71,656 KB
testcase_26 AC 86 ms
71,816 KB
testcase_27 AC 88 ms
71,620 KB
testcase_28 AC 87 ms
71,584 KB
testcase_29 AC 87 ms
71,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *

A, B = map(int, input().split())

if A==B:
    print(A+B)
else:
    print(A+B+max(A, B)-min(A, B)-1)
0