結果

問題 No.542 1円玉と5円玉
ユーザー souhei gunjisouhei gunji
提出日時 2018-12-12 05:49:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 225 bytes
コンパイル時間 503 ms
コンパイル使用メモリ 11,824 KB
実行使用メモリ 10,508 KB
最終ジャッジ日時 2023-10-25 08:19:38
合計ジャッジ時間 2,040 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,456 KB
testcase_01 AC 31 ms
10,456 KB
testcase_02 AC 31 ms
10,460 KB
testcase_03 AC 31 ms
10,456 KB
testcase_04 AC 31 ms
10,460 KB
testcase_05 AC 31 ms
10,484 KB
testcase_06 AC 33 ms
10,492 KB
testcase_07 AC 33 ms
10,492 KB
testcase_08 AC 38 ms
10,492 KB
testcase_09 AC 39 ms
10,496 KB
testcase_10 AC 32 ms
10,460 KB
testcase_11 AC 31 ms
10,464 KB
testcase_12 AC 89 ms
10,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import decimal
o, f = map(int, input().split())

r = []
for i in range(f+1):
    for j in range(o+1):
        if i!=0 or j!=0:
            if 5*i+j not in r:
                r.append(5*i+j)

r.sort()
for p in r:
    print(p)
0