結果
| 問題 |
No.542 1円玉と5円玉
|
| コンテスト | |
| ユーザー |
osrgy01
|
| 提出日時 | 2021-02-28 10:57:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 344 bytes |
| コンパイル時間 | 121 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,264 KB |
| 最終ジャッジ日時 | 2024-10-02 18:11:50 |
| 合計ジャッジ時間 | 1,218 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
a,b=map(int,input().split())
cnt=[]
if a!=0 and b!=0:
for i in range(1,a+1):
cnt.append(i)
for j in range(1,b+1):
cnt.append(j*5)
cnt.append(i+(j*5))
elif a!=0:
for i in range(1,a+1):
cnt.append(i)
else:
for j in range(1,b+1):
cnt.append(j*5)
print(*sorted(set(cnt)),sep='\n')
osrgy01