結果

問題 No.1210 XOR Grid
ユーザー rlangevinrlangevin
提出日時 2023-07-11 12:19:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 741 ms / 2,000 ms
コード長 305 bytes
コンパイル時間 586 ms
コンパイル使用メモリ 87,128 KB
実行使用メモリ 138,400 KB
最終ジャッジ日時 2023-10-11 03:31:51
合計ジャッジ時間 17,673 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,396 KB
testcase_01 AC 72 ms
71,588 KB
testcase_02 AC 75 ms
75,868 KB
testcase_03 AC 71 ms
71,364 KB
testcase_04 AC 72 ms
71,416 KB
testcase_05 AC 73 ms
71,684 KB
testcase_06 AC 72 ms
71,532 KB
testcase_07 AC 73 ms
71,416 KB
testcase_08 AC 71 ms
71,336 KB
testcase_09 AC 72 ms
71,660 KB
testcase_10 AC 71 ms
71,424 KB
testcase_11 AC 70 ms
71,476 KB
testcase_12 AC 71 ms
71,600 KB
testcase_13 AC 72 ms
71,680 KB
testcase_14 AC 74 ms
71,368 KB
testcase_15 AC 73 ms
71,472 KB
testcase_16 AC 73 ms
71,476 KB
testcase_17 AC 72 ms
71,596 KB
testcase_18 AC 73 ms
71,312 KB
testcase_19 AC 72 ms
71,540 KB
testcase_20 AC 71 ms
71,316 KB
testcase_21 AC 73 ms
71,348 KB
testcase_22 AC 71 ms
71,208 KB
testcase_23 AC 72 ms
71,504 KB
testcase_24 AC 72 ms
71,548 KB
testcase_25 AC 352 ms
114,336 KB
testcase_26 AC 358 ms
115,660 KB
testcase_27 AC 334 ms
115,500 KB
testcase_28 AC 338 ms
114,396 KB
testcase_29 AC 150 ms
116,136 KB
testcase_30 AC 130 ms
100,396 KB
testcase_31 AC 148 ms
115,952 KB
testcase_32 AC 145 ms
114,336 KB
testcase_33 AC 74 ms
71,564 KB
testcase_34 AC 72 ms
71,316 KB
testcase_35 AC 73 ms
71,496 KB
testcase_36 AC 147 ms
104,880 KB
testcase_37 AC 145 ms
106,176 KB
testcase_38 AC 150 ms
106,160 KB
testcase_39 AC 128 ms
104,620 KB
testcase_40 AC 210 ms
110,984 KB
testcase_41 AC 220 ms
110,452 KB
testcase_42 AC 604 ms
135,336 KB
testcase_43 AC 741 ms
132,556 KB
testcase_44 AC 595 ms
135,640 KB
testcase_45 AC 594 ms
135,820 KB
testcase_46 AC 576 ms
137,672 KB
testcase_47 AC 142 ms
111,004 KB
testcase_48 AC 140 ms
111,420 KB
testcase_49 AC 76 ms
75,848 KB
testcase_50 AC 184 ms
113,704 KB
testcase_51 AC 218 ms
138,400 KB
testcase_52 AC 200 ms
128,220 KB
testcase_53 AC 196 ms
138,324 KB
testcase_54 AC 138 ms
111,240 KB
testcase_55 AC 170 ms
135,924 KB
testcase_56 AC 158 ms
114,408 KB
testcase_57 AC 156 ms
122,116 KB
testcase_58 AC 73 ms
71,372 KB
testcase_59 AC 72 ms
71,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M, X = map(int, input().split())
A = list(map(int, input().split()))
A.extend(list(map(int, input().split())))
mod = 10 ** 9 + 7
for i in range(X + 1):
    cnt = 0
    for j in range(N + M):
        cnt += A[j] >> i
    if cnt % 2:
        print(0)
        exit()

print(pow(2, (N - 1)*(M - 1)*X, mod))
0