結果
| 問題 | No.542 1円玉と5円玉 | 
| コンテスト | |
| ユーザー |  fV9TwBhUoa9S3eV | 
| 提出日時 | 2019-10-10 15:08:52 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 81 ms / 2,000 ms | 
| コード長 | 268 bytes | 
| コンパイル時間 | 93 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-11-21 11:25:29 | 
| 合計ジャッジ時間 | 1,328 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 | 
ソースコード
a, b = [int(s) for s in input().split()]
prices = []
for i in range(a + 1):
    for j in range(b + 1):
        if not (i == 0 and j == 0):
            if (i + 5 * j) not in prices:
                prices.append(i + 5 * j)
prices.sort()
for i in prices:
    print(i)
            
            
            
        