結果
問題 | No.46 はじめのn歩 |
ユーザー |
![]() |
提出日時 | 2017-12-25 20:45:41 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 705 ms / 5,000 ms |
コード長 | 343 bytes |
コンパイル時間 | 865 ms |
コンパイル使用メモリ | 106,544 KB |
実行使用メモリ | 26,016 KB |
最終ジャッジ日時 | 2024-12-17 20:10:20 |
合計ジャッジ時間 | 2,331 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; namespace FirstOnSteps { class MainClass { public static void Main(string[] args) { string s = Console.ReadLine(); string[] t = s.Split(' '); int count = 0; int a = int.Parse(t[0]); int b = int.Parse(t[1]); while (b > 0) { b = b - a; count++ ; } Console.WriteLine("{0}", count); } } }