結果

問題 No.32 貯金箱の憂鬱
ユーザー goma
提出日時 2017-09-19 19:51:02
言語 Java
(openjdk 23)
結果
AC  
実行時間 138 ms / 5,000 ms
コード長 332 bytes
コンパイル時間 2,047 ms
コンパイル使用メモリ 73,836 KB
実行使用メモリ 41,616 KB
最終ジャッジ日時 2024-07-23 06:44:36
合計ジャッジ時間 4,347 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();// 100
		int b = sc.nextInt();// 25
		int c = sc.nextInt();// 1

		int ans = (100 * a + 25 * b + c) % 1000;
		System.out.println(ans / 100 + ans % 100 / 25 + ans % 100 % 25);

	}
}
0