結果

問題 No.32 貯金箱の憂鬱
ユーザー abL8ZLsTbFabL8ZLsTbF
提出日時 2016-03-20 01:53:22
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 5,000 ms
コード長 396 bytes
コンパイル時間 2,002 ms
コンパイル使用メモリ 96,628 KB
実行使用メモリ 22,644 KB
最終ジャッジ日時 2023-09-30 08:04:12
合計ジャッジ時間 3,468 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
22,628 KB
testcase_01 AC 55 ms
22,644 KB
testcase_02 AC 61 ms
20,588 KB
testcase_03 AC 59 ms
20,740 KB
testcase_04 AC 54 ms
20,604 KB
testcase_05 AC 60 ms
20,764 KB
testcase_06 AC 58 ms
20,584 KB
testcase_07 AC 61 ms
20,632 KB
testcase_08 AC 56 ms
22,640 KB
testcase_09 AC 56 ms
20,624 KB
testcase_10 AC 55 ms
20,616 KB
testcase_11 AC 56 ms
22,644 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Program {
    public static void Main() {
        int n = int.Parse(Console.ReadLine()) * 100;
        n += int.Parse(Console.ReadLine()) * 25;
        n += int.Parse(Console.ReadLine());
        int coin = 0;
        n %= 1000;
        coin += n/100;
        n %= 100;
        coin += n/25;
        n %= 25;
        coin += n;
        Console.WriteLine(coin);
    }
}
0