結果

問題 No.687 E869120 and Constructing Array 1
ユーザー iwkjoseciwkjosec
提出日時 2018-06-10 12:40:21
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 1,000 ms
コード長 266 bytes
コンパイル時間 1,989 ms
コンパイル使用メモリ 103,148 KB
実行使用メモリ 22,680 KB
最終ジャッジ日時 2023-09-13 02:37:05
合計ジャッジ時間 3,566 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
20,576 KB
testcase_01 AC 57 ms
20,716 KB
testcase_02 AC 58 ms
22,676 KB
testcase_03 AC 57 ms
22,680 KB
testcase_04 AC 58 ms
20,780 KB
testcase_05 AC 58 ms
20,716 KB
testcase_06 AC 57 ms
20,804 KB
testcase_07 AC 60 ms
20,636 KB
testcase_08 AC 60 ms
20,772 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;
using static System.Console;

class Program
{
    static void Main()
    {
        var N = int.Parse(ReadLine());
        WriteLine(N % 2 == 0 ? $"{N / 2} {N / 2}" : $"{N / 2} {N / 2 + 1}");
    }
}
0