結果

問題 No.32 貯金箱の憂鬱
ユーザー oemonoemon
提出日時 2016-11-22 22:56:46
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 55 ms / 5,000 ms
コード長 506 bytes
コンパイル時間 1,967 ms
コンパイル使用メモリ 96,544 KB
実行使用メモリ 22,808 KB
最終ジャッジ日時 2023-09-30 08:18:03
合計ジャッジ時間 3,377 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
20,720 KB
testcase_01 AC 54 ms
20,812 KB
testcase_02 AC 54 ms
20,676 KB
testcase_03 AC 53 ms
20,724 KB
testcase_04 AC 54 ms
20,716 KB
testcase_05 AC 55 ms
22,680 KB
testcase_06 AC 55 ms
20,716 KB
testcase_07 AC 55 ms
22,808 KB
testcase_08 AC 54 ms
20,592 KB
testcase_09 AC 54 ms
20,720 KB
testcase_10 AC 55 ms
22,756 KB
testcase_11 AC 53 ms
22,708 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace No32
{
    class Program
    {
        static void Main(string[] args)
        {
            var L = int.Parse(Console.ReadLine());
            var M = int.Parse(Console.ReadLine());
            var N = int.Parse(Console.ReadLine());

            var MM = N / 25;
            N -= MM * 25;
            M += MM;

            var LL = M / 4;
            M -= LL * 4;
            L += LL;

            var result = L % 10 + M + N;
            Console.Write(result);
        }
    }
}
0