結果

問題 No.1210 XOR Grid
ユーザー Keroru
提出日時 2020-08-30 16:25:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 186 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 82,456 KB
実行使用メモリ 264,176 KB
最終ジャッジ日時 2024-11-15 11:10:43
合計ジャッジ時間 11,902 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 35 WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

M=10**9+7;n,m,x,*v=map(int,open(0).read().split());a=v[:n];b=v[n:];print(pow(pow(2,(n-1)*(m-1),M),x,M)*all([(sum([(s>>i)&1for s in a])-sum([(s>>i)&1for s in a]))%2==0for i in range(x)]))
0