結果

問題 No.32 貯金箱の憂鬱
ユーザー oldlevinoldlevin
提出日時 2020-02-21 06:17:08
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 55 ms / 5,000 ms
コード長 621 bytes
コンパイル時間 1,817 ms
コンパイル使用メモリ 98,860 KB
実行使用メモリ 22,792 KB
最終ジャッジ日時 2023-09-30 13:48:05
合計ジャッジ時間 3,143 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
20,624 KB
testcase_01 AC 54 ms
20,708 KB
testcase_02 AC 53 ms
20,820 KB
testcase_03 AC 54 ms
20,708 KB
testcase_04 AC 54 ms
20,800 KB
testcase_05 AC 54 ms
20,692 KB
testcase_06 AC 55 ms
22,728 KB
testcase_07 AC 54 ms
20,812 KB
testcase_08 AC 54 ms
22,792 KB
testcase_09 AC 54 ms
20,632 KB
testcase_10 AC 54 ms
20,692 KB
testcase_11 AC 55 ms
20,764 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 System.Text.RegularExpressions;
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