結果

問題 No.32 貯金箱の憂鬱
ユーザー umisanumisan
提出日時 2017-10-13 15:27:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 485 bytes
コンパイル時間 1,956 ms
コンパイル使用メモリ 70,888 KB
実行使用メモリ 56,288 KB
最終ジャッジ日時 2023-09-30 12:42:27
合計ジャッジ時間 4,277 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,680 KB
testcase_01 AC 127 ms
56,124 KB
testcase_02 AC 129 ms
55,572 KB
testcase_03 AC 126 ms
55,772 KB
testcase_04 AC 127 ms
55,660 KB
testcase_05 AC 125 ms
56,288 KB
testcase_06 AC 125 ms
55,852 KB
testcase_07 AC 125 ms
55,840 KB
testcase_08 AC 125 ms
55,740 KB
testcase_09 AC 125 ms
55,584 KB
testcase_10 AC 125 ms
55,808 KB
testcase_11 AC 127 ms
55,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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 = (n % 25);
        l += (m / 4);
        m = (m % 4);
        int t = (l / 10);
        l = (l % 10);
        System.out.println(n + m + l);
        //ここまで
        sc.close();
    }
}
0