結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-12 23:37:12 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 1,404 ms / 5,000 ms |
| コード長 | 423 bytes |
| コンパイル時間 | 852 ms |
| コンパイル使用メモリ | 112,084 KB |
| 実行使用メモリ | 27,144 KB |
| 最終ジャッジ日時 | 2024-10-04 06:37:30 |
| 合計ジャッジ時間 | 2,980 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / 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.Linq;
namespace _0046
{
class Program
{
static void Main(string[] args)
{
var n = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
var a = n[0];
var b = n[1];
var c = 0;
while(b > 0){
b -= a;
c++;
}
Console.WriteLine(c);
}
}
}