結果

問題 No.32 貯金箱の憂鬱
ユーザー SaYa
提出日時 2015-11-07 23:30:30
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 499 bytes
コンパイル時間 2,130 ms
コンパイル使用メモリ 74,676 KB
実行使用メモリ 54,228 KB
最終ジャッジ日時 2024-09-13 14:05:37
合計ジャッジ時間 4,372 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int l = Integer.parseInt(scanner.next());
        int m = Integer.parseInt(scanner.next());
        int n = Integer.parseInt(scanner.next());
        int total = (l + m + n);
        int count = 0;
        count += (total % 1000) / 100;
        count += (total % 100) / 25;
        count += (total % 25);
        System.out.println(count);
    }
}
0