結果

問題 No.32 貯金箱の憂鬱
コンテスト
ユーザー 水野嶺
提出日時 2020-05-19 10:23:25
言語 Java
(openjdk 26.0.2.1 + ACL)
コンパイル:
javac -J-Duser.language=en -encoding UTF8 -cp /opt/aclib/ac_library.jar _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true -cp .:/opt/aclib/ac_library.jar _class_
結果
WA  
実行時間 -
コード長 431 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,387 ms
コンパイル使用メモリ 85,828 KB
実行使用メモリ 45,340 KB
最終ジャッジ日時 2026-09-08 08:08:20
合計ジャッジ時間 3,377 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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