結果

問題 No.477 MVP
ユーザー huffman56huffman56
提出日時 2022-12-25 11:24:19
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 1,000 ms
コード長 378 bytes
コンパイル時間 2,533 ms
コンパイル使用メモリ 103,208 KB
実行使用メモリ 23,876 KB
最終ジャッジ日時 2023-08-12 02:38:39
合計ジャッジ時間 3,833 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
21,900 KB
testcase_01 AC 59 ms
22,000 KB
testcase_02 AC 60 ms
21,896 KB
testcase_03 AC 59 ms
21,920 KB
testcase_04 AC 59 ms
21,928 KB
testcase_05 AC 59 ms
21,880 KB
testcase_06 AC 59 ms
21,932 KB
testcase_07 AC 60 ms
21,820 KB
testcase_08 AC 58 ms
22,020 KB
testcase_09 AC 59 ms
23,876 KB
testcase_10 AC 59 ms
21,840 KB
testcase_11 AC 59 ms
21,904 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

namespace _0446
{
    class Program
    {
        static void Main(string[] args)
        {
            var num = Console.ReadLine().Split(' ').Select(x => Int64.Parse(x)).ToArray();
            var n = num[0];
            var k = num[1];


            Console.WriteLine((n / (k + 1)) + 1);

        }
    }
}
0