結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | TD |
提出日時 | 2022-05-25 10:42:13 |
言語 | C# (.NET 7.0.402) |
結果 |
AC
|
実行時間 | 57 ms / 5,000 ms |
コード長 | 777 bytes |
コンパイル時間 | 7,064 ms |
コンパイル使用メモリ | 157,692 KB |
実行使用メモリ | 176,180 KB |
最終ジャッジ日時 | 2023-10-20 19:08:48 |
合計ジャッジ時間 | 8,564 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 56 ms
30,872 KB |
testcase_01 | AC | 56 ms
30,892 KB |
testcase_02 | AC | 57 ms
30,892 KB |
testcase_03 | AC | 57 ms
30,872 KB |
testcase_04 | AC | 57 ms
30,872 KB |
testcase_05 | AC | 57 ms
30,872 KB |
testcase_06 | AC | 56 ms
30,872 KB |
testcase_07 | AC | 55 ms
30,892 KB |
testcase_08 | AC | 55 ms
30,872 KB |
testcase_09 | AC | 55 ms
30,892 KB |
testcase_10 | AC | 55 ms
30,892 KB |
testcase_11 | AC | 56 ms
176,180 KB |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (103 ms)。 MSBuild のバージョン 17.7.3+8ec440e68 (.NET) main -> /home/judge/data/code/bin/Release/net7.0/main.dll main -> /home/judge/data/code/bin/Release/net7.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()); } } }