結果
| 問題 | No.32 貯金箱の憂鬱 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-25 10:42:13 |
| 言語 | C# (.NET 10.0.201) |
| 結果 |
AC
|
| 実行時間 | 48 ms / 5,000 ms |
| コード長 | 777 bytes |
| 記録 | |
| コンパイル時間 | 15,461 ms |
| コンパイル使用メモリ | 172,620 KB |
| 実行使用メモリ | 193,912 KB |
| 最終ジャッジ日時 | 2026-04-09 01:06:43 |
| 合計ジャッジ時間 | 13,362 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (104 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.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());
}
}
}