結果

問題 No.32 貯金箱の憂鬱
ユーザー brave_reverse_
提出日時 2016-01-07 14:53:05
言語 Java
(openjdk 23)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 440 bytes
コンパイル時間 3,442 ms
コンパイル使用メモリ 76,740 KB
実行使用メモリ 54,188 KB
最終ジャッジ日時 2024-07-23 02:14:07
合計ジャッジ時間 5,565 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicorder;
import java.util.Scanner;

public class QNo32 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		short l = sc.nextShort();
		short m = sc.nextShort();
		short n = sc.nextShort();
		int total = 100*l+25*m+n;
		int releive = total%1000;
		short num = 0;
		num += releive/100;
		releive %= 100;
		num += releive/25;
		releive %= 25;
		num += releive/1;
		
		System.out.println(num);
	}

}
0