結果

問題 No.1372 Median of Submasks
ユーザー donutholedonuthole
提出日時 2021-02-05 21:30:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 592 bytes
コンパイル時間 372 ms
コンパイル使用メモリ 86,700 KB
実行使用メモリ 71,696 KB
最終ジャッジ日時 2023-09-15 07:15:47
合計ジャッジ時間 3,878 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 98 ms
71,324 KB
testcase_01 AC 96 ms
71,612 KB
testcase_02 AC 96 ms
71,636 KB
testcase_03 AC 96 ms
71,696 KB
testcase_04 AC 96 ms
71,640 KB
testcase_05 AC 96 ms
71,188 KB
testcase_06 AC 95 ms
71,436 KB
testcase_07 AC 96 ms
71,428 KB
testcase_08 AC 96 ms
71,676 KB
testcase_09 AC 97 ms
71,612 KB
testcase_10 AC 97 ms
71,316 KB
testcase_11 AC 96 ms
71,656 KB
testcase_12 AC 95 ms
71,312 KB
testcase_13 AC 95 ms
71,436 KB
testcase_14 AC 96 ms
71,296 KB
testcase_15 AC 97 ms
71,616 KB
testcase_16 AC 97 ms
71,404 KB
testcase_17 AC 96 ms
71,308 KB
testcase_18 AC 95 ms
71,288 KB
testcase_19 AC 96 ms
71,512 KB
testcase_20 AC 95 ms
71,376 KB
testcase_21 AC 95 ms
71,436 KB
testcase_22 AC 97 ms
71,516 KB
testcase_23 AC 94 ms
71,440 KB
testcase_24 AC 95 ms
71,692 KB
testcase_25 AC 96 ms
71,604 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import math
import collections
import bisect


# sys.setrecursionlimit(10000001)
INF = 10 ** 20
MOD = 10 ** 9 + 7
# MOD = 998244353


def ni(): return int(sys.stdin.buffer.readline())
def ns(): return map(int, sys.stdin.buffer.readline().split())
def na(): return list(map(int, sys.stdin.buffer.readline().split()))
def na1(): return list(map(lambda x: int(x)-1, sys.stdin.buffer.readline().split()))


# ===CODE===
def main():
    n = ni()
    mx = 0
    for i in range(60):
        if n >> i & 1:
            mx = i

    print(pow(2, mx))


if __name__ == '__main__':
    main()
0