結果

問題 No.1800 Random XOR
ユーザー terasaterasa
提出日時 2022-11-24 18:09:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 541 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 68,232 KB
最終ジャッジ日時 2024-04-08 15:24:31
合計ジャッジ時間 2,491 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
68,232 KB
testcase_01 AC 63 ms
68,232 KB
testcase_02 AC 62 ms
68,232 KB
testcase_03 AC 63 ms
68,232 KB
testcase_04 AC 64 ms
68,232 KB
testcase_05 AC 66 ms
68,232 KB
testcase_06 AC 63 ms
68,232 KB
testcase_07 AC 63 ms
68,232 KB
testcase_08 AC 62 ms
68,232 KB
testcase_09 AC 62 ms
68,232 KB
testcase_10 AC 63 ms
68,232 KB
testcase_11 AC 62 ms
68,232 KB
testcase_12 AC 59 ms
68,232 KB
testcase_13 AC 60 ms
68,232 KB
testcase_14 AC 61 ms
68,232 KB
testcase_15 AC 60 ms
68,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from typing import List, Tuple, Callable, TypeVar
import sys
import itertools
import heapq
import bisect
import math
from collections import deque, defaultdict, Counter
from functools import lru_cache, cmp_to_key

input = sys.stdin.readline

if __file__ != 'prog.py':
    sys.setrecursionlimit(10 ** 6)


def readints(): return map(int, input().split())
def readlist(): return list(readints())
def readstr(): return input()[:-1]


N, M = readints()
mod = 10 ** 9 + 7

p = pow(2, mod - 2, mod)
ans = p * (pow(2, M, mod) - 1) % mod
print(ans)
0