結果

問題 No.1057 素敵な日
ユーザー uni_pythonuni_python
提出日時 2020-06-18 23:25:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 273 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 87,020 KB
実行使用メモリ 71,356 KB
最終ジャッジ日時 2023-09-16 12:28:27
合計ジャッジ時間 1,597 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,032 KB
testcase_01 AC 72 ms
71,104 KB
testcase_02 AC 73 ms
71,048 KB
testcase_03 AC 72 ms
71,196 KB
testcase_04 AC 71 ms
71,032 KB
testcase_05 AC 70 ms
70,936 KB
testcase_06 AC 72 ms
71,028 KB
testcase_07 AC 73 ms
70,916 KB
testcase_08 AC 71 ms
71,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
mod=10**9+7

def main():
    A,B=MI()
    if A==B:
        print(2*A-1)
    else:
        print(min(A,B)*2)


main()
0