結果
| 問題 |
No.388 階段 (1)
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-31 11:32:10 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 2,000 ms |
| コード長 | 465 bytes |
| コンパイル時間 | 8,328 ms |
| コンパイル使用メモリ | 171,532 KB |
| 実行使用メモリ | 188,428 KB |
| 最終ジャッジ日時 | 2025-03-31 11:32:21 |
| 合計ジャッジ時間 | 9,756 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (128 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
class Program
{
static void Main(string[] args)
{
string stairs = Console.ReadLine();
string[] strList = stairs.Split(' ');
int max = int.Parse(strList[0]);
int onceStairs = int.Parse(strList[1]);
int count = 0;
while(max >= 0)
{
max -= onceStairs;
count++;
}
Console.WriteLine(count);
}
}
Maeda