結果
問題 | No.46 はじめのn歩 |
ユーザー | TD |
提出日時 | 2022-05-24 09:41:23 |
言語 | C# (.NET 8.0.203) |
結果 |
AC
|
実行時間 | 2,111 ms / 5,000 ms |
コード長 | 563 bytes |
コンパイル時間 | 7,167 ms |
コンパイル使用メモリ | 157,788 KB |
実行使用メモリ | 175,996 KB |
最終ジャッジ日時 | 2023-10-20 17:54:03 |
合計ジャッジ時間 | 10,313 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 56 ms
30,956 KB |
testcase_01 | AC | 56 ms
30,956 KB |
testcase_02 | AC | 56 ms
30,956 KB |
testcase_03 | AC | 57 ms
30,956 KB |
testcase_04 | AC | 57 ms
30,936 KB |
testcase_05 | AC | 56 ms
30,936 KB |
testcase_06 | AC | 56 ms
30,936 KB |
testcase_07 | AC | 57 ms
30,956 KB |
testcase_08 | AC | 2,111 ms
31,316 KB |
testcase_09 | AC | 56 ms
175,996 KB |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (102 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) { string[] str = Console.ReadLine().Split(' '); int num = 0; int ans = 0; int a = int.Parse(str[0]); int b = int.Parse(str[1]); for(; ; ) { ans += a; num++; if (ans >= b) { Console.WriteLine(num.ToString()); break; } } } } }