結果

問題 No.32 貯金箱の憂鬱
ユーザー syusyu
提出日時 2020-08-25 19:01:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 5,000 ms
コード長 388 bytes
コンパイル時間 1,831 ms
コンパイル使用メモリ 71,252 KB
実行使用メモリ 56,228 KB
最終ジャッジ日時 2023-09-30 13:59:06
合計ジャッジ時間 3,982 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
56,228 KB
testcase_01 AC 115 ms
56,180 KB
testcase_02 AC 119 ms
55,968 KB
testcase_03 AC 118 ms
56,044 KB
testcase_04 AC 117 ms
56,100 KB
testcase_05 AC 116 ms
55,864 KB
testcase_06 AC 115 ms
56,100 KB
testcase_07 AC 118 ms
56,160 KB
testcase_08 AC 119 ms
55,832 KB
testcase_09 AC 118 ms
54,652 KB
testcase_10 AC 119 ms
56,116 KB
testcase_11 AC 118 ms
56,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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*(n/25);
        
        l+=m/4;
        m-=4*(m/4);
        
        l-=10*(l/10);
        
        System.out.println(l+m+n);
        
    }
}
0