結果

問題 No.32 貯金箱の憂鬱
ユーザー oldlevinoldlevin
提出日時 2020-02-21 06:18:58
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 55 ms / 5,000 ms
コード長 583 bytes
コンパイル時間 1,813 ms
コンパイル使用メモリ 98,604 KB
実行使用メモリ 22,856 KB
最終ジャッジ日時 2023-09-30 13:48:16
合計ジャッジ時間 3,130 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;

public class hello{
    public static void Main(){   //yukicoder No.32 貯金箱の憂鬱        
        var L = int.Parse(ReadLine().Trim()); //100
        var m = int.Parse(ReadLine().Trim()); //25
        var n = int.Parse(ReadLine().Trim()); //1
        
        var sum = L*100 + 25*m + n;
        sum = sum%1000;
        var d100 = sum/100;
        sum = sum%100;
        var d25 = sum/25;
        var d1 = sum%25;
        
        WriteLine(d100 + d25 + d1);
        
    }
}


0