結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | pea vava |
提出日時 | 2020-08-30 19:34:25 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 442 bytes |
コンパイル時間 | 109 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-04-27 13:05:59 |
合計ジャッジ時間 | 1,054 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
ソースコード
L = int(input()) #100円の枚数 M = int(input()) #25円の枚数 N = int(input()) #1円の枚数 sum = 100*L + 25*M + N print(sum) remaind_1000 = divmod(sum, 1000) #print(remaind_1000) remaind_100 = divmod(remaind_1000[1], 100) #print(remaind_100) remaind_25 = divmod(remaind_100[1], 25) #print(remaind_25) remaind_1 = remaind_25[1] #print(remaind_1) coin = remaind_100[0] + remaind_25[0] + remaind_1 print(coin)