結果

問題 No.32 貯金箱の憂鬱
ユーザー 水野嶺
提出日時 2020-05-19 10:23:25
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 431 bytes
コンパイル時間 2,318 ms
コンパイル使用メモリ 74,544 KB
実行使用メモリ 54,564 KB
最終ジャッジ日時 2024-10-01 22:36:50
合計ジャッジ時間 4,513 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.lang.*;
import java.io.*;

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 total =0;
		int d =0;
		int e =0;
		
		d = a/25;
		total += a%25;
		
		e = (b+d)/4;
		total += (b+d)%4;
		
		total += (c+e)%10;
		
		System.out.println(total);
	}
}
0