結果

問題 No.32 貯金箱の憂鬱
ユーザー 水野嶺水野嶺
提出日時 2020-05-19 11:06:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 5,000 ms
コード長 431 bytes
コンパイル時間 1,799 ms
コンパイル使用メモリ 71,684 KB
実行使用メモリ 56,548 KB
最終ジャッジ日時 2023-09-30 13:52:55
合計ジャッジ時間 3,909 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
56,152 KB
testcase_01 AC 114 ms
55,888 KB
testcase_02 AC 117 ms
56,188 KB
testcase_03 AC 114 ms
56,548 KB
testcase_04 AC 118 ms
55,724 KB
testcase_05 AC 116 ms
55,728 KB
testcase_06 AC 115 ms
55,792 KB
testcase_07 AC 115 ms
55,808 KB
testcase_08 AC 114 ms
56,080 KB
testcase_09 AC 116 ms
55,756 KB
testcase_10 AC 119 ms
55,888 KB
testcase_11 AC 118 ms
55,444 KB
権限があれば一括ダウンロードができます

ソースコード

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