結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | rururu |
提出日時 | 2017-06-05 18:13:30 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 126 ms / 5,000 ms |
コード長 | 1,485 bytes |
コンパイル時間 | 2,279 ms |
コンパイル使用メモリ | 72,484 KB |
実行使用メモリ | 56,044 KB |
最終ジャッジ日時 | 2023-09-30 10:46:30 |
合計ジャッジ時間 | 4,420 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 121 ms
55,916 KB |
testcase_01 | AC | 122 ms
55,576 KB |
testcase_02 | AC | 124 ms
55,772 KB |
testcase_03 | AC | 124 ms
55,916 KB |
testcase_04 | AC | 125 ms
55,924 KB |
testcase_05 | AC | 124 ms
55,604 KB |
testcase_06 | AC | 125 ms
55,856 KB |
testcase_07 | AC | 123 ms
55,680 KB |
testcase_08 | AC | 124 ms
55,596 KB |
testcase_09 | AC | 124 ms
55,584 KB |
testcase_10 | AC | 124 ms
56,044 KB |
testcase_11 | AC | 126 ms
55,988 KB |
ソースコード
import java.util.*; import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { Scanner s = new Scanner(System.in); int L = s.nextInt(); int M = s.nextInt(); int N =s.nextInt(); int K = 0; int S = 0; int R = 0; if(N>24){ K=N/25; N=N%25; M=M+K; } if(M>3){ S=M/4; M=M%4; L=L+S; } if(L>9){ R=L/10; L=L%10; } int sum =L+M+N; System.out.println(sum); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); } }