結果

問題 No.32 貯金箱の憂鬱
ユーザー core123core123
提出日時 2019-04-16 15:34:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 5,000 ms
コード長 292 bytes
コンパイル時間 2,272 ms
コンパイル使用メモリ 72,016 KB
実行使用メモリ 56,672 KB
最終ジャッジ日時 2023-09-30 13:30:23
合計ジャッジ時間 4,014 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,880 KB
testcase_01 AC 120 ms
55,784 KB
testcase_02 AC 119 ms
55,756 KB
testcase_03 AC 118 ms
56,176 KB
testcase_04 AC 117 ms
56,136 KB
testcase_05 AC 116 ms
56,220 KB
testcase_06 AC 118 ms
56,040 KB
testcase_07 AC 116 ms
56,032 KB
testcase_08 AC 119 ms
55,668 KB
testcase_09 AC 118 ms
55,816 KB
testcase_10 AC 118 ms
55,916 KB
testcase_11 AC 116 ms
56,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.*;
public class Main{
	public static void main(String... args){
		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