結果

問題 No.1800 Random XOR
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-01-07 22:01:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 104 bytes
コンパイル時間 536 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 71,376 KB
最終ジャッジ日時 2023-08-09 03:17:24
合計ジャッジ時間 2,539 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,268 KB
testcase_01 AC 68 ms
71,272 KB
testcase_02 AC 72 ms
71,064 KB
testcase_03 AC 70 ms
71,348 KB
testcase_04 AC 69 ms
71,124 KB
testcase_05 AC 69 ms
71,312 KB
testcase_06 AC 71 ms
71,316 KB
testcase_07 AC 70 ms
71,248 KB
testcase_08 AC 71 ms
71,316 KB
testcase_09 AC 71 ms
71,120 KB
testcase_10 AC 70 ms
71,216 KB
testcase_11 AC 68 ms
71,316 KB
testcase_12 AC 71 ms
71,344 KB
testcase_13 AC 69 ms
71,268 KB
testcase_14 AC 69 ms
71,324 KB
testcase_15 AC 69 ms
71,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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