結果

問題 No.1372 Median of Submasks
ユーザー bluemeganebluemegane
提出日時 2021-02-06 07:29:09
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 271 bytes
コンパイル時間 3,012 ms
コンパイル使用メモリ 65,036 KB
実行使用メモリ 22,736 KB
最終ジャッジ日時 2023-09-15 12:00:48
合計ジャッジ時間 5,072 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
22,684 KB
testcase_01 AC 54 ms
20,744 KB
testcase_02 AC 53 ms
20,640 KB
testcase_03 WA -
testcase_04 AC 55 ms
20,696 KB
testcase_05 WA -
testcase_06 AC 55 ms
22,736 KB
testcase_07 AC 56 ms
20,700 KB
testcase_08 AC 55 ms
20,676 KB
testcase_09 AC 55 ms
20,624 KB
testcase_10 AC 56 ms
20,568 KB
testcase_11 AC 56 ms
20,588 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 55 ms
22,728 KB
testcase_17 AC 55 ms
20,592 KB
testcase_18 AC 54 ms
20,600 KB
testcase_19 AC 54 ms
20,596 KB
testcase_20 AC 56 ms
22,724 KB
testcase_21 AC 56 ms
22,632 KB
testcase_22 AC 56 ms
22,688 KB
testcase_23 AC 55 ms
22,664 KB
testcase_24 AC 54 ms
20,728 KB
testcase_25 AC 55 ms
22,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

public class Hello
{
    static void Main()
    {
        var n = long.Parse(Console.ReadLine().Trim());
        var t = 1L;
        while (true)
        {
            if (t * 2 >= n) { Console.WriteLine(t); break; }
            t *= 2L;
        }
    }
}
0