結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
_i1115
|
| 提出日時 | 2020-04-08 03:04:43 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 419 bytes |
| コンパイル時間 | 3,206 ms |
| コンパイル使用メモリ | 102,016 KB |
| 実行使用メモリ | 17,664 KB |
| 最終ジャッジ日時 | 2024-07-16 00:37:23 |
| 合計ジャッジ時間 | 1,664 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 12 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
class Program
{
static void Main ()
{
string[] inputNums = Console.ReadLine ().Split (' ');
int l = int.Parse (inputNums[0]);
int m = int.Parse (inputNums[1]);
int n = int.Parse (inputNums[2]);
int money = 100 * l + 25 * m + n;
money = money % 1000;
int ans = money / 100;
money = money % 100;
ans += money / 25;
money = money % 25;
ans += money;
Console.WriteLine (ans);
}
}
_i1115