結果

問題 No.1210 XOR Grid
ユーザー trineutrontrineutron
提出日時 2021-05-09 21:26:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 254 bytes
コンパイル時間 377 ms
コンパイル使用メモリ 11,656 KB
実行使用メモリ 49,264 KB
最終ジャッジ日時 2023-10-19 06:03:37
合計ジャッジ時間 8,813 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,980 KB
testcase_01 AC 30 ms
9,980 KB
testcase_02 WA -
testcase_03 AC 29 ms
9,980 KB
testcase_04 AC 29 ms
9,980 KB
testcase_05 AC 30 ms
9,980 KB
testcase_06 AC 29 ms
9,980 KB
testcase_07 AC 29 ms
9,980 KB
testcase_08 AC 30 ms
9,980 KB
testcase_09 AC 29 ms
9,980 KB
testcase_10 AC 30 ms
9,980 KB
testcase_11 AC 29 ms
9,980 KB
testcase_12 AC 29 ms
9,980 KB
testcase_13 AC 29 ms
9,980 KB
testcase_14 AC 29 ms
9,980 KB
testcase_15 AC 29 ms
9,980 KB
testcase_16 AC 29 ms
9,980 KB
testcase_17 AC 29 ms
9,980 KB
testcase_18 WA -
testcase_19 AC 29 ms
9,980 KB
testcase_20 AC 29 ms
9,980 KB
testcase_21 WA -
testcase_22 AC 29 ms
9,980 KB
testcase_23 AC 29 ms
9,980 KB
testcase_24 AC 29 ms
9,980 KB
testcase_25 AC 132 ms
37,472 KB
testcase_26 AC 137 ms
34,860 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 131 ms
35,072 KB
testcase_30 AC 123 ms
30,052 KB
testcase_31 AC 131 ms
35,076 KB
testcase_32 AC 132 ms
37,472 KB
testcase_33 AC 29 ms
9,980 KB
testcase_34 AC 29 ms
9,980 KB
testcase_35 WA -
testcase_36 AC 85 ms
13,924 KB
testcase_37 AC 86 ms
13,924 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 AC 230 ms
44,456 KB
testcase_52 AC 213 ms
41,676 KB
testcase_53 AC 232 ms
46,800 KB
testcase_54 WA -
testcase_55 AC 201 ms
42,316 KB
testcase_56 AC 132 ms
37,472 KB
testcase_57 AC 173 ms
32,488 KB
testcase_58 AC 29 ms
10,016 KB
testcase_59 AC 30 ms
9,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m, x = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
sa = 0
sb = 0
for x in a:
    sa ^= x
for x in b:
    sb ^= x
if sa != sb:
    print(0)
else:
    print(pow(2, (n - 1) * (m - 1) * x, 10**9 + 7))
0