結果
| 問題 | No.32 貯金箱の憂鬱 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-05-25 10:42:13 | 
| 言語 | C# (.NET 8.0.404) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 50 ms / 5,000 ms | 
| コード長 | 777 bytes | 
| コンパイル時間 | 7,481 ms | 
| コンパイル使用メモリ | 168,684 KB | 
| 実行使用メモリ | 184,192 KB | 
| 最終ジャッジ日時 | 2024-09-20 14:43:36 | 
| 合計ジャッジ時間 | 8,775 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 | 
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (98 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
namespace yukicoder
{
    class Program
    {
        static void Main(string[] args)
        {
          int a = int.Parse(Console.ReadLine());
            int b = int.Parse(Console.ReadLine());
            int c = int.Parse(Console.ReadLine());
            int e=0;
            int num = 0;
            if (c >= 25)
            {
                e = c / 25;
                b += e;
                c -= 25 * e;
            }
            if (b>=4)
            {
                e = b / 4;
                a += e;
                b -= 4 * e;
            }
            if (a >= 10)
            {
                e = a / 10;
                a -= 10 * e;
            }
            num = a + b + c ;
            Console.WriteLine(num.ToString());
        }
    }
}
            
            
            
        