結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
![]() |
提出日時 | 2019-06-26 09:21:44 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 319 bytes |
コンパイル時間 | 78 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-24 07:57:47 |
合計ジャッジ時間 | 1,030 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 10 |
ソースコード
l,m,n = [int(input()) for _ in range(3)] c = 0 sum = l + 25*m + 100*n if sum == 0: print('貯金箱は空っぽでした。') else: while(sum>1000): c += 1 sum -= 1000 while(sum>100): c += 1 sum -= 100 while(sum>25): c += 1 sum -= 25 print(c+sum - 1)