結果

問題 No.1057 素敵な日
ユーザー tachyon777tachyon777
提出日時 2020-05-24 15:10:58
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 253 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 82,340 KB
実行使用メモリ 67,204 KB
最終ジャッジ日時 2024-04-19 15:04:17
合計ジャッジ時間 1,259 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
権限があれば一括ダウンロードができます

ソースコード

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
while b != 0:
    ans += 1
    b -= 1
    if a == 0:
        break
    ans += 1
    a -= 1
print(ans)
0