結果

問題 No.32 貯金箱の憂鬱
ユーザー GrenacheGrenache
提出日時 2015-06-30 19:07:25
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 455 bytes
コンパイル時間 3,508 ms
コンパイル使用メモリ 72,116 KB
実行使用メモリ 56,224 KB
最終ジャッジ日時 2023-09-30 07:51:56
合計ジャッジ時間 5,299 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,828 KB
testcase_01 AC 121 ms
55,756 KB
testcase_02 AC 121 ms
56,224 KB
testcase_03 AC 120 ms
55,932 KB
testcase_04 AC 119 ms
55,812 KB
testcase_05 AC 120 ms
55,844 KB
testcase_06 AC 122 ms
55,800 KB
testcase_07 AC 123 ms
55,904 KB
testcase_08 AC 121 ms
55,828 KB
testcase_09 AC 122 ms
55,788 KB
testcase_10 AC 122 ms
55,824 KB
testcase_11 AC 122 ms
56,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder32 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int l = sc.nextInt();
        int m = sc.nextInt();
        int n = sc.nextInt();

        int sum = l * 100 + m * 25 + n;

        l = (sum % 1000) / 100;
        m = (sum % 100) / 25;
        n = (sum % 25);
        
        System.out.println(l + m + n);
        
        sc.close();
    }
}
0