結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,880 KB
testcase_01 AC 122 ms
56,252 KB
testcase_02 AC 126 ms
55,732 KB
testcase_03 AC 125 ms
55,828 KB
testcase_04 AC 125 ms
55,880 KB
testcase_05 AC 122 ms
55,456 KB
testcase_06 AC 121 ms
55,880 KB
testcase_07 AC 124 ms
55,444 KB
testcase_08 AC 124 ms
55,480 KB
testcase_09 AC 126 ms
55,776 KB
testcase_10 AC 126 ms
55,488 KB
testcase_11 AC 122 ms
55,704 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