結果
問題 |
No.46 はじめのn歩
|
ユーザー |
![]() |
提出日時 | 2014-11-15 22:39:30 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 32 ms / 5,000 ms |
コード長 | 475 bytes |
コンパイル時間 | 1,110 ms |
コンパイル使用メモリ | 110,832 KB |
実行使用メモリ | 27,516 KB |
最終ジャッジ日時 | 2024-12-31 20:28:00 |
合計ジャッジ時間 | 2,078 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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.Globalization; using System.Linq; internal class Program { public static void Main(string[] args) { var data = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var a = data[0]; var b = data[1]; if (b%a == 0) { Console.WriteLine(b/a); return; } Console.WriteLine(((int)(b/a) + 1).ToString(CultureInfo.InvariantCulture)); } }