結果

問題 No.1800 Random XOR
ユーザー horitaka1999horitaka1999
提出日時 2022-01-12 22:44:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 121 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 82,156 KB
実行使用メモリ 53,640 KB
最終ジャッジ日時 2024-04-27 13:08:28
合計ジャッジ時間 1,522 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
51,812 KB
testcase_01 AC 34 ms
51,876 KB
testcase_02 AC 34 ms
51,828 KB
testcase_03 AC 35 ms
52,280 KB
testcase_04 AC 32 ms
52,276 KB
testcase_05 AC 33 ms
53,024 KB
testcase_06 AC 33 ms
52,816 KB
testcase_07 AC 32 ms
53,488 KB
testcase_08 AC 33 ms
52,352 KB
testcase_09 AC 33 ms
52,160 KB
testcase_10 AC 33 ms
53,640 KB
testcase_11 AC 32 ms
52,808 KB
testcase_12 AC 32 ms
52,408 KB
testcase_13 AC 34 ms
52,860 KB
testcase_14 AC 34 ms
51,680 KB
testcase_15 AC 35 ms
53,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())
mod = 10 ** 9 + 7
ans = (pow(2,M,mod) -1 ) % mod * pow(2,mod-2,mod)
ans %= mod
print(ans)
0