結果

問題 No.1210 XOR Grid
ユーザー anagohirameanagohirame
提出日時 2020-08-31 00:31:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 147 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 82,368 KB
実行使用メモリ 132,956 KB
最終ジャッジ日時 2024-04-27 13:46:45
合計ジャッジ時間 6,896 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,620 KB
testcase_01 AC 36 ms
52,268 KB
testcase_02 AC 35 ms
52,772 KB
testcase_03 AC 34 ms
52,332 KB
testcase_04 AC 33 ms
52,800 KB
testcase_05 AC 33 ms
52,120 KB
testcase_06 AC 33 ms
52,544 KB
testcase_07 AC 32 ms
53,960 KB
testcase_08 AC 35 ms
52,508 KB
testcase_09 AC 35 ms
52,612 KB
testcase_10 AC 33 ms
52,188 KB
testcase_11 AC 38 ms
52,212 KB
testcase_12 AC 38 ms
52,460 KB
testcase_13 AC 38 ms
52,068 KB
testcase_14 AC 38 ms
52,688 KB
testcase_15 AC 34 ms
52,224 KB
testcase_16 AC 33 ms
52,152 KB
testcase_17 AC 34 ms
53,568 KB
testcase_18 AC 34 ms
52,936 KB
testcase_19 AC 34 ms
53,012 KB
testcase_20 AC 33 ms
52,952 KB
testcase_21 AC 35 ms
53,808 KB
testcase_22 AC 35 ms
52,532 KB
testcase_23 AC 33 ms
52,132 KB
testcase_24 AC 33 ms
52,128 KB
testcase_25 AC 94 ms
105,372 KB
testcase_26 AC 93 ms
105,564 KB
testcase_27 AC 95 ms
106,092 KB
testcase_28 AC 94 ms
105,364 KB
testcase_29 AC 97 ms
105,616 KB
testcase_30 AC 89 ms
99,620 KB
testcase_31 AC 98 ms
105,724 KB
testcase_32 AC 95 ms
105,516 KB
testcase_33 AC 34 ms
52,820 KB
testcase_34 AC 32 ms
52,396 KB
testcase_35 AC 34 ms
52,732 KB
testcase_36 AC 68 ms
97,584 KB
testcase_37 AC 68 ms
97,356 KB
testcase_38 AC 70 ms
96,756 KB
testcase_39 AC 65 ms
96,372 KB
testcase_40 AC 98 ms
116,232 KB
testcase_41 AC 99 ms
116,056 KB
testcase_42 AC 142 ms
125,224 KB
testcase_43 AC 140 ms
132,956 KB
testcase_44 AC 147 ms
125,356 KB
testcase_45 AC 141 ms
124,504 KB
testcase_46 AC 138 ms
127,888 KB
testcase_47 AC 95 ms
115,740 KB
testcase_48 AC 97 ms
115,780 KB
testcase_49 AC 35 ms
52,872 KB
testcase_50 AC 116 ms
109,184 KB
testcase_51 AC 142 ms
127,504 KB
testcase_52 AC 135 ms
130,008 KB
testcase_53 AC 140 ms
125,940 KB
testcase_54 AC 99 ms
115,736 KB
testcase_55 AC 126 ms
131,716 KB
testcase_56 AC 97 ms
105,260 KB
testcase_57 AC 113 ms
118,688 KB
testcase_58 AC 35 ms
52,584 KB
testcase_59 AC 32 ms
52,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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))
0