結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | kat0rik |
提出日時 | 2020-01-19 20:08:44 |
言語 | Go (1.22.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 265 bytes |
コンパイル時間 | 11,428 ms |
コンパイル使用メモリ | 200,968 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-09-15 20:23:20 |
合計ジャッジ時間 | 12,777 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,356 KB |
testcase_01 | AC | 2 ms
4,352 KB |
testcase_02 | AC | 2 ms
4,356 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 1 ms
4,356 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
ソースコード
package main import "fmt" func main() { var L, M, N, sum int fmt.Scan(&L, &M, &N) sum = 100*L + 25*M + N sum -= (sum / 1000) * 1000 h := sum / 100 // 100円の枚数 sum -= h * 100 f := sum / 50 // 25円の枚数 sum -= f * 50 fmt.Println(h + f + sum) }