結果

問題 No.1057 素敵な日
ユーザー koba-e964koba-e964
提出日時 2020-05-22 22:53:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 203 bytes
コンパイル時間 382 ms
コンパイル使用メモリ 82,396 KB
実行使用メモリ 53,364 KB
最終ジャッジ日時 2024-04-15 18:08:28
合計ジャッジ時間 1,265 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
52,864 KB
testcase_01 AC 42 ms
52,208 KB
testcase_02 AC 43 ms
52,496 KB
testcase_03 AC 42 ms
52,244 KB
testcase_04 AC 42 ms
52,648 KB
testcase_05 AC 41 ms
53,364 KB
testcase_06 AC 43 ms
53,256 KB
testcase_07 AC 41 ms
52,440 KB
testcase_08 AC 42 ms
52,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

import sys
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 7)

a, b = map(int, readline().split())
if a == b:
    print(2 * a - 1)
else:
    print(2 * min(a, b))
0