結果

問題 No.1800 Random XOR
ユーザー ygd.ygd.
提出日時 2022-01-07 21:39:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 561 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 8,092 KB
最終ジャッジ日時 2023-08-09 03:07:41
合計ジャッジ時間 1,324 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,916 KB
testcase_01 AC 15 ms
7,960 KB
testcase_02 AC 15 ms
7,896 KB
testcase_03 AC 15 ms
7,936 KB
testcase_04 AC 15 ms
7,920 KB
testcase_05 AC 16 ms
7,984 KB
testcase_06 AC 16 ms
8,092 KB
testcase_07 AC 15 ms
7,956 KB
testcase_08 AC 15 ms
7,968 KB
testcase_09 AC 15 ms
7,976 KB
testcase_10 AC 15 ms
8,040 KB
testcase_11 AC 15 ms
7,960 KB
testcase_12 AC 15 ms
7,900 KB
testcase_13 AC 16 ms
7,964 KB
testcase_14 AC 15 ms
7,896 KB
testcase_15 AC 15 ms
7,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
#input = sys.stdin.readline #文字列につけてはダメ
input = sys.stdin.buffer.readline #文字列につけてはダメ
#sys.setrecursionlimit(1000000)
#import bisect
#import itertools
#import random
#from heapq import heapify, heappop, heappush
#from collections import defaultdict 
#from collections import deque
#import copy
#from functools import lru_cache
import math

def main():
    n,m = map(int,input().split()); MOD = pow(10,9) + 7
    ans = pow(2,m-1,MOD) - pow(2,MOD-2,MOD)
    print(ans%MOD)


if __name__ == '__main__':
    main()
0