結果

問題 No.32 貯金箱の憂鬱
ユーザー KazukiAkita
提出日時 2017-10-26 17:57:21
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 454 bytes
コンパイル時間 1,985 ms
コンパイル使用メモリ 73,688 KB
実行使用メモリ 41,152 KB
最終ジャッジ日時 2024-11-21 20:07:06
合計ジャッジ時間 4,069 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 7
権限があれば一括ダウンロードができます

ソースコード

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 + P % 4 + Q % 10);


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