using System; using System.Collections.Generic; using System.Linq; class Program { static string InputPattern = "InputX"; static List GetInputList() { var WillReturn = new List(); if (InputPattern == "Input1") { WillReturn.Add("2 5"); //3 //1歩が2センチメートルで5センチメートルの区間を歩く。 //2歩で4センチ進むだけでは区間の5センチに足らない。 //3歩で6センチ進むと区間の5センチをオーバーする。 } else if (InputPattern == "Input2") { WillReturn.Add("10 100"); //10 //1歩が10センチメートルで100センチメートルの区間を歩く。 //10歩で100センチ進みちょうど区間を歩き切る。 } else if (InputPattern == "Input3") { WillReturn.Add("123456789 987654321"); //9 } else { string wkStr; while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr); } return WillReturn; } static void Main() { List InputList = GetInputList(); int[] wkArr = InputList[0].Split(' ').Select(X => int.Parse(X)).ToArray(); int A = wkArr[0]; int B = wkArr[1]; Console.WriteLine(B / A + Math.Sign(B % A)); } }