結果

問題 No.32 貯金箱の憂鬱
ユーザー yui-taryui-tar
提出日時 2021-03-24 22:28:07
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 425 bytes
コンパイル時間 3,107 ms
コンパイル使用メモリ 99,796 KB
実行使用メモリ 22,532 KB
最終ジャッジ日時 2023-08-17 22:37:42
合計ジャッジ時間 3,664 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
class Sample
{
    public static void Main()
    {
        string str = Console.ReadLine();
        string[] st = str.Split(" ");
        int a = int.Parse(st[0]);
        int b = int.Parse(st[1]);
        int c = int.Parse(st[2]);
        
        b += c / 25;
        c %= 25;

        a += b / 4;
        b %= 4;

        int d = a / 10;
        a %= 10;
        Console.WriteLine(a + b + c);
       
    }
}
0