結果
問題 |
No.46 はじめのn歩
|
ユーザー |
![]() |
提出日時 | 2019-06-21 09:51:42 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 840 ms / 5,000 ms |
コード長 | 706 bytes |
コンパイル時間 | 978 ms |
コンパイル使用メモリ | 102,784 KB |
実行使用メモリ | 17,792 KB |
最終ジャッジ日時 | 2024-12-24 07:11:39 |
合計ジャッジ時間 | 2,663 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
コンパイルメッセージ
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); } } }