結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
|
提出日時 | 2023-04-18 13:21:29 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 135 ms / 5,000 ms |
コード長 | 584 bytes |
コンパイル時間 | 2,152 ms |
コンパイル使用メモリ | 77,820 KB |
実行使用メモリ | 54,132 KB |
最終ジャッジ日時 | 2024-10-13 11:49:52 |
合計ジャッジ時間 | 4,580 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int x = a * 100; int y = b * 25; int z = c * 1; int total = x + y + z; int x1000 = total % 1000; int total100 = x1000 / 100; int total25 = x1000 % 100 / 25; int total1 = x1000 % 100 % 25 / 1; System.out.println(total100 + total25 + total1); } }