結果

問題 No.32 貯金箱の憂鬱
ユーザー 水野嶺水野嶺
提出日時 2020-05-19 10:23:25
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 431 bytes
コンパイル時間 1,969 ms
コンパイル使用メモリ 74,704 KB
実行使用メモリ 54,296 KB
最終ジャッジ日時 2024-04-09 22:04:19
合計ジャッジ時間 4,268 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
53,080 KB
testcase_01 AC 124 ms
54,256 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 106 ms
52,876 KB
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

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