結果

問題 No.63 ポッキーゲーム
ユーザー abL8ZLsTbFabL8ZLsTbF
提出日時 2016-03-23 17:22:55
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 63 ms / 5,000 ms
コード長 262 bytes
コンパイル時間 2,184 ms
コンパイル使用メモリ 103,784 KB
実行使用メモリ 24,816 KB
最終ジャッジ日時 2023-08-25 19:05:27
合計ジャッジ時間 4,533 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
18,668 KB
testcase_01 AC 59 ms
20,808 KB
testcase_02 AC 61 ms
24,808 KB
testcase_03 AC 63 ms
24,644 KB
testcase_04 AC 57 ms
18,808 KB
testcase_05 AC 60 ms
22,744 KB
testcase_06 AC 62 ms
22,652 KB
testcase_07 AC 62 ms
22,760 KB
testcase_08 AC 62 ms
22,572 KB
testcase_09 AC 62 ms
22,620 KB
testcase_10 AC 63 ms
22,772 KB
testcase_11 AC 62 ms
24,816 KB
testcase_12 AC 62 ms
22,684 KB
testcase_13 AC 62 ms
22,688 KB
testcase_14 AC 63 ms
24,740 KB
testcase_15 AC 63 ms
22,728 KB
testcase_16 AC 63 ms
22,784 KB
testcase_17 AC 63 ms
24,796 KB
testcase_18 AC 63 ms
24,656 KB
testcase_19 AC 63 ms
22,640 KB
testcase_20 AC 63 ms
22,748 KB
testcase_21 AC 61 ms
20,608 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Program {
    public static void Main() {
        string[] input = Console.ReadLine().Split();
        int l = int.Parse(input[0]);
        int k = int.Parse(input[1]);
        Console.WriteLine((Math.Ceiling(l/(2.0*k))-1)*k);
    }
}
0