結果
| 問題 | No.1210 XOR Grid | 
| コンテスト | |
| ユーザー |  anagohirame | 
| 提出日時 | 2020-08-31 00:31:08 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 178 ms / 2,000 ms | 
| コード長 | 239 bytes | 
| コンパイル時間 | 216 ms | 
| コンパイル使用メモリ | 82,236 KB | 
| 実行使用メモリ | 132,964 KB | 
| 最終ジャッジ日時 | 2024-11-15 16:02:57 | 
| 合計ジャッジ時間 | 7,635 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 57 | 
ソースコード
MOD = 10**9+7 n, m, x = map(int, input().split()) a = list(map(int, input().split())) b = list(map(int, input().split())) p = 0 for c in a: p ^= c q = 0 for d in b: q ^= d if p != q: print(0) else: print(pow(2, x * (n-1) * (m-1), MOD))
