結果
問題 | No.542 1円玉と5円玉 |
ユーザー | rocoder |
提出日時 | 2017-07-17 18:50:48 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 373 bytes |
コンパイル時間 | 90 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-08 07:03:38 |
合計ジャッジ時間 | 1,015 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#coinA,B=(int(i) for i in input().split())if A==0:i=1while i<=B:print(5*i)i+=1else:i=0while i<=B:if i == 0:j=1else:j=0while j<=A and j<5:print(i*5+j)j+=1i+=1if A>4:i-=1while j<=A:print(i*5+j)j+=1