結果

問題 No.63 ポッキーゲーム
ユーザー iwkjosec
提出日時 2018-02-23 17:44:18
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 302 bytes
コンパイル時間 3,493 ms
コンパイル使用メモリ 102,912 KB
実行使用メモリ 18,944 KB
最終ジャッジ日時 2024-10-08 15:27:20
合計ジャッジ時間 3,880 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 19
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;
using static System.Console;

class Program
{
    static void Main()
    {
        var lk = ReadLine().Split().Select(int.Parse).ToArray();
        WriteLine((lk[0] / (lk[1] * 2) + (lk[0]) % (lk[1] * 2) == 0 ? -1 : 0) * lk[0]);
    }
}
0