結果

問題 No.32 貯金箱の憂鬱
ユーザー SuunnSuunn
提出日時 2018-11-20 05:19:48
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 314 bytes
コンパイル時間 1,946 ms
コンパイル使用メモリ 71,788 KB
実行使用メモリ 56,312 KB
最終ジャッジ日時 2023-09-30 13:21:09
合計ジャッジ時間 4,278 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,552 KB
testcase_01 AC 127 ms
55,872 KB
testcase_02 AC 124 ms
56,312 KB
testcase_03 AC 122 ms
56,216 KB
testcase_04 AC 123 ms
55,836 KB
testcase_05 AC 126 ms
56,040 KB
testcase_06 AC 125 ms
56,188 KB
testcase_07 AC 124 ms
56,172 KB
testcase_08 AC 124 ms
55,796 KB
testcase_09 AC 124 ms
55,812 KB
testcase_10 AC 125 ms
56,096 KB
testcase_11 AC 122 ms
55,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
	

public class Main{
	
	
	public static void main(String args[])throws Exception{
		
		Scanner sc = new Scanner(System.in);
		int L = sc.nextInt();
		int M = sc.nextInt();
		int N = sc.nextInt();
		M += N/25;
		N %= 25;
		L += M/4;
		M %= 4;
		L %= 10;
		System.out.println(L+M+N);
	}
}
0