結果

問題 No.477 MVP
ユーザー DameningenDameningen
提出日時 2017-03-12 19:03:51
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 1,000 ms
コード長 275 bytes
コンパイル時間 1,982 ms
コンパイル使用メモリ 99,156 KB
実行使用メモリ 22,952 KB
最終ジャッジ日時 2023-09-12 12:07:03
合計ジャッジ時間 3,509 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

using System;

class Program
{
	public static void Main()
	{
		string s = Console.ReadLine();
		string[] sAry = s.Split(' ');
		long N = long.Parse(sAry[0]);
		long K = long.Parse(sAry[1]);

		long a = N / (K + 1);
		long ans = a + 1;

		Console.WriteLine("{0}", ans);

	}
}
0