結果
問題 | No.46 はじめのn歩 |
ユーザー | funakoshi |
提出日時 | 2019-06-21 09:51:42 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 1,450 ms / 5,000 ms |
コード長 | 706 bytes |
コンパイル時間 | 2,996 ms |
コンパイル使用メモリ | 99,504 KB |
実行使用メモリ | 22,792 KB |
最終ジャッジ日時 | 2023-08-25 20:59:37 |
合計ジャッジ時間 | 4,879 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 55 ms
20,704 KB |
testcase_01 | AC | 55 ms
20,600 KB |
testcase_02 | AC | 55 ms
22,792 KB |
testcase_03 | AC | 56 ms
22,732 KB |
testcase_04 | AC | 55 ms
20,660 KB |
testcase_05 | AC | 55 ms
18,752 KB |
testcase_06 | AC | 54 ms
18,876 KB |
testcase_07 | AC | 55 ms
20,708 KB |
testcase_08 | AC | 1,450 ms
20,668 KB |
testcase_09 | AC | 56 ms
20,792 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoderTest { class Program { static void Main(string[] args) { string ab = Console.ReadLine(); string[] ary = ab.Split(' '); int canwalk = int.Parse(ary[0]); int goal = int.Parse(ary[1]); int walkcnt = 0; while(goal>0) { goal = goal - canwalk; walkcnt++; if (goal<=0) { break; } } Console.WriteLine(walkcnt); } } }