結果

問題 No.32 貯金箱の憂鬱
ユーザー atkrymatkrym
提出日時 2016-11-07 18:28:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 5,000 ms
コード長 398 bytes
コンパイル時間 2,202 ms
コンパイル使用メモリ 71,060 KB
実行使用メモリ 55,968 KB
最終ジャッジ日時 2023-09-30 08:17:03
合計ジャッジ時間 4,692 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
55,552 KB
testcase_01 AC 132 ms
55,556 KB
testcase_02 AC 132 ms
55,676 KB
testcase_03 AC 133 ms
55,900 KB
testcase_04 AC 133 ms
55,504 KB
testcase_05 AC 133 ms
55,968 KB
testcase_06 AC 132 ms
55,268 KB
testcase_07 AC 134 ms
55,748 KB
testcase_08 AC 134 ms
55,884 KB
testcase_09 AC 133 ms
55,616 KB
testcase_10 AC 134 ms
55,692 KB
testcase_11 AC 133 ms
55,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    private static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws Exception {
        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