結果

問題 No.1800 Random XOR
ユーザー rlangevin
提出日時 2022-12-31 00:44:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 136 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-11-25 22:46:18
合計ジャッジ時間 1,741 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
mod = 10 ** 9 + 7

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