結果
問題 | No.46 はじめのn歩 |
ユーザー | n.y |
提出日時 | 2022-05-24 11:01:56 |
言語 | C# (.NET 8.0.203) |
結果 |
AC
|
実行時間 | 53 ms / 5,000 ms |
コード長 | 560 bytes |
コンパイル時間 | 6,531 ms |
コンパイル使用メモリ | 156,980 KB |
実行使用メモリ | 175,736 KB |
最終ジャッジ日時 | 2023-10-20 17:56:19 |
合計ジャッジ時間 | 7,641 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 49 ms
31,004 KB |
testcase_01 | AC | 51 ms
31,004 KB |
testcase_02 | AC | 52 ms
31,004 KB |
testcase_03 | AC | 50 ms
31,004 KB |
testcase_04 | AC | 51 ms
30,984 KB |
testcase_05 | AC | 50 ms
30,984 KB |
testcase_06 | AC | 49 ms
30,984 KB |
testcase_07 | AC | 53 ms
31,004 KB |
testcase_08 | AC | 50 ms
30,984 KB |
testcase_09 | AC | 53 ms
175,736 KB |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (89 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 a = int.Parse(str[0]); //センチメートル int b = int.Parse(str[1]); int num = 0; num = b / a; int num2 = 0; num2 = b % a; if(num2>0) { num = num + 1; } Console.WriteLine(num.ToString()); } } }