結果

問題 No.1372 Median of Submasks
ユーザー bluemeganebluemegane
提出日時 2021-02-06 06:54:57
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 234 bytes
コンパイル時間 1,759 ms
コンパイル使用メモリ 62,708 KB
実行使用メモリ 23,128 KB
最終ジャッジ日時 2023-09-15 11:36:51
合計ジャッジ時間 4,425 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
23,060 KB
testcase_01 AC 55 ms
21,036 KB
testcase_02 AC 55 ms
20,880 KB
testcase_03 AC 54 ms
20,840 KB
testcase_04 AC 54 ms
18,832 KB
testcase_05 AC 54 ms
20,916 KB
testcase_06 AC 55 ms
22,988 KB
testcase_07 AC 55 ms
22,956 KB
testcase_08 AC 55 ms
22,996 KB
testcase_09 WA -
testcase_10 AC 54 ms
20,916 KB
testcase_11 WA -
testcase_12 AC 54 ms
18,888 KB
testcase_13 AC 54 ms
22,948 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

using static System.Math;
using System;

public class Hello
{
    static void Main()
    {
        var n = long.Parse(Console.ReadLine().Trim());
        long ans = 1 << (int)(Log(n) / Log(2));
        Console.WriteLine(ans);
    }
}
0