結果

問題 No.32 貯金箱の憂鬱
ユーザー chiho_miyakochiho_miyako
提出日時 2015-04-07 15:53:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 5,000 ms
コード長 434 bytes
コンパイル時間 1,981 ms
コンパイル使用メモリ 71,792 KB
実行使用メモリ 56,128 KB
最終ジャッジ日時 2023-09-30 07:49:07
合計ジャッジ時間 4,122 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,128 KB
testcase_01 AC 120 ms
55,936 KB
testcase_02 AC 119 ms
55,924 KB
testcase_03 AC 120 ms
55,892 KB
testcase_04 AC 119 ms
56,064 KB
testcase_05 AC 118 ms
56,100 KB
testcase_06 AC 119 ms
55,464 KB
testcase_07 AC 120 ms
55,776 KB
testcase_08 AC 118 ms
54,072 KB
testcase_09 AC 118 ms
56,024 KB
testcase_10 AC 119 ms
55,692 KB
testcase_11 AC 119 ms
55,924 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner koko = new Scanner(System.in);
        int l = koko.nextInt();
        int m = koko.nextInt();
        int n = koko.nextInt();
        int s = 100*l+25*m+n;
        int ms = s%1000;
        int mms = ms%100;
        int mmms = mms%25;
        System.out.println(((ms-mms)/100)+((mms-mmms)/25)+mmms);
        }
    }
0