結果

問題 No.32 貯金箱の憂鬱
ユーザー btk
提出日時 2017-12-12 17:41:05
言語 Java
(openjdk 23)
結果
AC  
実行時間 143 ms / 5,000 ms
コード長 434 bytes
コンパイル時間 2,234 ms
コンパイル使用メモリ 74,172 KB
実行使用メモリ 54,388 KB
最終ジャッジ日時 2024-07-23 06:49:22
合計ジャッジ時間 4,570 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

/**
 * Created by btk on 2017/10/17.
 */
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 ret = 0;

        ret+=N%25;
        M+=N/25;
        ret+=M%4;
        L+=M/4;
        ret+=L%10;

        System.out.println(ret);

        sc.close();
    }
}
0