結果

問題 No.32 貯金箱の憂鬱
ユーザー KazukiAkita
提出日時 2017-10-26 18:01:54
言語 Java
(openjdk 23)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 466 bytes
コンパイル時間 2,082 ms
コンパイル使用メモリ 74,800 KB
実行使用メモリ 54,272 KB
最終ジャッジ日時 2024-07-23 06:46:45
合計ジャッジ時間 4,514 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

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();

        int O = N / 25;
        int P = (O + M) / 4;
        int Q = (P + L) / 10;


        System.out.println(N % 25 + (O + M) % 4 + (P + L) % 10);


            //ここまで
        sc.close();
    }
}
0