結果

問題 No.542 1円玉と5円玉
ユーザー NoviNovi
提出日時 2019-12-01 13:39:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 232 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-05-01 03:56:02
合計ジャッジ時間 1,503 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,880 KB
testcase_01 WA -
testcase_02 AC 31 ms
10,880 KB
testcase_03 AC 30 ms
10,880 KB
testcase_04 AC 30 ms
10,752 KB
testcase_05 AC 31 ms
10,752 KB
testcase_06 AC 31 ms
10,752 KB
testcase_07 AC 32 ms
10,752 KB
testcase_08 AC 32 ms
10,752 KB
testcase_09 AC 34 ms
10,752 KB
testcase_10 AC 32 ms
10,752 KB
testcase_11 AC 31 ms
10,752 KB
testcase_12 AC 35 ms
11,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())
ans=[]
for i in range(a+1):
    for j in range(b+1):
        tmp=1*i+5*j
        if tmp!=0:
            ans.append(tmp)

ans.sort()
ans=set(ans)
ans=list(ans)
for i in range (len(ans)):
    print(ans[i])
0