結果

問題 No.1210 XOR Grid
ユーザー hirayuu_yc
提出日時 2025-02-17 10:36:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 150 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 309 ms
コンパイル使用メモリ 82,700 KB
実行使用メモリ 133,276 KB
最終ジャッジ日時 2025-02-17 10:36:13
合計ジャッジ時間 9,042 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 57
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD=1000000007
N,M,X=map(int,input().split())
A=list(map(int,input().split()))
B=list(map(int,input().split()))
xors=0
for a in A:xors^=a
for b in B:xors^=b
if xors!=0:
	print(0)
else:
	print(pow(1<<X,(N-1)*(M-1),MOD))
0