結果
| 問題 | No.32 貯金箱の憂鬱 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-02-04 12:51:05 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 520 bytes | 
| コンパイル時間 | 2,084 ms | 
| コンパイル使用メモリ | 110,860 KB | 
| 実行使用メモリ | 27,968 KB | 
| 最終ジャッジ日時 | 2024-12-24 18:11:17 | 
| 合計ジャッジ時間 | 3,119 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 6 WA * 6 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
public class Program
{
    public static void Main(string[] args)
    {
        int L = 0, M = 0, N = 0;
        L = int.Parse(Console.ReadLine());
        M = int.Parse(Console.ReadLine());
        N = int.Parse(Console.ReadLine());
        if (L == 0 && M == 0 && N == 0) { Console.WriteLine(0); return; }
                
        while (N >= 25 )  { N -= 25; M += 25; }
        while (M >=  4)     { M -= 4; L += 1; }
        while (L >= 10) { L -= 10; }
        Console.WriteLine(N + M + L);
    }
}
            
            
            
        