結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | Katooooo |
提出日時 | 2017-09-12 14:05:34 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 125 ms / 5,000 ms |
コード長 | 570 bytes |
コンパイル時間 | 2,863 ms |
コンパイル使用メモリ | 70,804 KB |
実行使用メモリ | 56,232 KB |
最終ジャッジ日時 | 2023-09-30 12:41:14 |
合計ジャッジ時間 | 5,689 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 125 ms
55,716 KB |
testcase_01 | AC | 125 ms
56,068 KB |
testcase_02 | AC | 123 ms
55,996 KB |
testcase_03 | AC | 124 ms
56,232 KB |
testcase_04 | AC | 122 ms
55,724 KB |
testcase_05 | AC | 121 ms
55,936 KB |
testcase_06 | AC | 122 ms
55,796 KB |
testcase_07 | AC | 120 ms
55,580 KB |
testcase_08 | AC | 119 ms
56,080 KB |
testcase_09 | AC | 121 ms
56,180 KB |
testcase_10 | AC | 122 ms
56,216 KB |
testcase_11 | AC | 120 ms
55,540 KB |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int L = sc.nextInt(); int M = sc.nextInt(); int N = sc.nextInt(); int add_M = (int)N/25; int lost_N = N - add_M*25; M = M + add_M; int add_L = (int)M/4; int lost_M = M - add_L*4; L = L + add_L; int add_O = (int)L/10; int lost_L = L - add_O*10; System.out.println(lost_N+lost_M+lost_L); } }