結果

問題 No.542 1円玉と5円玉
ユーザー fagfagdfa
提出日時 2017-08-23 21:32:43
言語 Python2
(2.7.18)
結果
AC  
実行時間 13 ms / 2,000 ms
コード長 284 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-10-15 13:15:18
合計ジャッジ時間 930 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import copy

a, b = map(int, raw_input().split())

dic = {}

for i in range(0, a + 1):
    if i not in dic:
        dic[i] = True
    for j in range(1, b + 1):
        tmp = i + j * 5
        dic[tmp] = True

keys = dic.keys()
keys.sort()

for i in keys:
    if i > 0:
        print i
0