結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-06-30 19:07:25 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 140 ms / 5,000 ms |
| コード長 | 455 bytes |
| コンパイル時間 | 3,282 ms |
| コンパイル使用メモリ | 74,492 KB |
| 実行使用メモリ | 54,364 KB |
| 最終ジャッジ日時 | 2024-07-23 02:05:29 |
| 合計ジャッジ時間 | 5,678 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
import java.util.Scanner;
public class Main_yukicoder32 {
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 sum = l * 100 + m * 25 + n;
l = (sum % 1000) / 100;
m = (sum % 100) / 25;
n = (sum % 25);
System.out.println(l + m + n);
sc.close();
}
}