結果
| 問題 | No.1210 XOR Grid |
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-11-22 20:32:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 339 bytes |
| コンパイル時間 | 290 ms |
| コンパイル使用メモリ | 83,028 KB |
| 実行使用メモリ | 133,272 KB |
| 最終ジャッジ日時 | 2025-11-22 20:32:45 |
| 合計ジャッジ時間 | 9,529 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 46 WA * 11 |
ソースコード
MOD = 10 ** 9 + 7
N,M,X = map(int,input().split())
A= list(map(int,input().split()))
B = list(map(int,input().split()))
if M == 1:
N,M = M,N
A,B = B,A
if N == 1:
a = A[0]
for b in B:
a ^= b
if a == 0:
print(1)
else:
print(0)
exit()
ans = pow(pow(pow(2,N-1,MOD),M-1,MOD),X,MOD)
print(ans)
ntuda