結果

問題 No.1057 素敵な日
ユーザー tachyon777tachyon777
提出日時 2020-05-24 15:11:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 261 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 82,404 KB
実行使用メモリ 53,624 KB
最終ジャッジ日時 2024-04-19 21:19:32
合計ジャッジ時間 1,199 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,132 KB
testcase_01 AC 35 ms
53,216 KB
testcase_02 AC 34 ms
52,872 KB
testcase_03 AC 35 ms
53,624 KB
testcase_04 AC 35 ms
52,344 KB
testcase_05 AC 35 ms
53,112 KB
testcase_06 AC 35 ms
53,260 KB
testcase_07 AC 35 ms
52,312 KB
testcase_08 AC 35 ms
52,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
readline = sys.stdin.buffer.readline
def even(n): return 1 if n%2==0 else 0
a,b = map(int,readline().split())
if a < b:
    a,b = b,a
a -= 1
ans = 0
while b != 0:
    ans += 1
    b -= 1
    if a == 0:
        break
    ans += 1
    a -= 1
print(ans)
0