結果

問題 No.1800 Random XOR
ユーザー minimumminimum
提出日時 2022-04-15 22:09:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 104 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 86,904 KB
実行使用メモリ 71,424 KB
最終ジャッジ日時 2023-08-26 08:03:01
合計ジャッジ時間 2,573 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,256 KB
testcase_01 AC 71 ms
71,252 KB
testcase_02 AC 69 ms
71,256 KB
testcase_03 AC 68 ms
71,256 KB
testcase_04 AC 67 ms
71,312 KB
testcase_05 AC 69 ms
71,352 KB
testcase_06 AC 69 ms
71,424 KB
testcase_07 AC 68 ms
71,424 KB
testcase_08 AC 68 ms
71,304 KB
testcase_09 AC 68 ms
71,164 KB
testcase_10 AC 69 ms
71,188 KB
testcase_11 AC 69 ms
71,364 KB
testcase_12 AC 68 ms
71,384 KB
testcase_13 AC 70 ms
71,220 KB
testcase_14 AC 68 ms
71,376 KB
testcase_15 AC 67 ms
71,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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