結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
|
提出日時 | 2020-12-21 23:36:26 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 567 bytes |
コンパイル時間 | 2,663 ms |
コンパイル使用メモリ | 73,016 KB |
実行使用メモリ | 37,068 KB |
最終ジャッジ日時 | 2024-09-21 13:22:36 |
合計ジャッジ時間 | 3,336 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 5 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(br.readLine()); // 100 int b = Integer.parseInt(br.readLine()); // 25 int c = Integer.parseInt(br.readLine()); // 1 int b2 = b + (c / 25); int a2 = a + (b / 4); int sum = c - (c / 25) * 25 + b2 - (b2 / 4) * 4 + a2 - (a2 / 10) * 10; System.out.println(sum); } }