結果

問題 No.1057 素敵な日
ユーザー brthyyjpbrthyyjp
提出日時 2020-05-24 05:07:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 119 bytes
コンパイル時間 608 ms
コンパイル使用メモリ 82,288 KB
実行使用メモリ 53,432 KB
最終ジャッジ日時 2024-04-18 07:32:08
合計ジャッジ時間 1,404 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
51,996 KB
testcase_01 AC 35 ms
51,904 KB
testcase_02 AC 35 ms
52,216 KB
testcase_03 AC 37 ms
52,416 KB
testcase_04 AC 35 ms
52,276 KB
testcase_05 AC 34 ms
52,612 KB
testcase_06 AC 33 ms
52,500 KB
testcase_07 AC 35 ms
53,432 KB
testcase_08 AC 33 ms
52,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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