結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-17 19:35:06 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 623 bytes |
| コンパイル時間 | 2,074 ms |
| コンパイル使用メモリ | 73,852 KB |
| 実行使用メモリ | 41,360 KB |
| 最終ジャッジ日時 | 2024-10-12 20:43:34 |
| 合計ジャッジ時間 | 4,555 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 11 |
ソースコード
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 total1000 = total / 1000;
int total100 = total % 1000 / 100;
int total25 = total % 1000 % 100 / 25;
int total1 = total % 1000 % 100 % 25 / 1;
System.out.println(total1000+ total100 + total25 + total1);
}
}