結果

問題 No.1422 Social Distance in Train
ユーザー bluemeganebluemegane
提出日時 2021-03-12 22:46:54
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 182 bytes
コンパイル時間 679 ms
コンパイル使用メモリ 65,040 KB
実行使用メモリ 22,680 KB
最終ジャッジ日時 2023-08-04 16:08:58
合計ジャッジ時間 2,103 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
20,616 KB
testcase_01 AC 47 ms
20,672 KB
testcase_02 AC 49 ms
18,616 KB
testcase_03 AC 50 ms
18,568 KB
testcase_04 AC 51 ms
20,668 KB
testcase_05 AC 48 ms
18,580 KB
testcase_06 AC 51 ms
20,648 KB
testcase_07 AC 50 ms
20,632 KB
testcase_08 AC 50 ms
22,680 KB
testcase_09 AC 52 ms
22,652 KB
testcase_10 AC 49 ms
20,728 KB
testcase_11 AC 49 ms
20,560 KB
testcase_12 AC 49 ms
20,608 KB
testcase_13 AC 49 ms
22,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

public class Hello
{
    static void Main()
    {
        var n = int.Parse(Console.ReadLine().Trim());
        Console.WriteLine(n % 2 == 1 ? 1 : n / 2 + 1);
    }
}
0