結果

問題 No.477 MVP
ユーザー Charlotte8687Charlotte8687
提出日時 2018-12-06 09:51:42
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 55 ms / 1,000 ms
コード長 358 bytes
コンパイル時間 1,959 ms
コンパイル使用メモリ 99,012 KB
実行使用メモリ 22,888 KB
最終ジャッジ日時 2023-10-12 00:47:42
合計ジャッジ時間 3,279 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
20,636 KB
testcase_01 AC 53 ms
20,720 KB
testcase_02 AC 53 ms
20,744 KB
testcase_03 AC 54 ms
22,752 KB
testcase_04 AC 55 ms
22,768 KB
testcase_05 AC 53 ms
22,792 KB
testcase_06 AC 54 ms
22,800 KB
testcase_07 AC 54 ms
20,744 KB
testcase_08 AC 53 ms
22,888 KB
testcase_09 AC 52 ms
18,676 KB
testcase_10 AC 54 ms
22,868 KB
testcase_11 AC 53 ms
22,732 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace StudyApp
{
    class Program
    {
        static void Main(string[] args)
        {
            var inputs = Console.ReadLine().Trim().Split(' ');
            var n = long.Parse(inputs[0]);
            var k = long.Parse(inputs[1]);

            var result = n / (k + 1) + 1;
            Console.WriteLine(result);
        }
    }
}
0