結果
| 問題 | No.542 1円玉と5円玉 |
| コンテスト | |
| ユーザー |
fV9TwBhUoa9S3eV
|
| 提出日時 | 2019-10-10 15:08:52 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 49 ms / 2,000 ms |
| + 127µs | |
| コード長 | 268 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-09-27 12:05:03 |
| 合計ジャッジ時間 | 1,717 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
fV9TwBhUoa9S3eV