結果

問題 No.1210 XOR Grid
ユーザー 37zigen37zigen
提出日時 2020-08-30 14:19:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 289 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 49,820 KB
最終ジャッジ日時 2024-04-27 07:27:20
合計ジャッジ時間 20,236 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
17,692 KB
testcase_01 AC 30 ms
10,752 KB
testcase_02 AC 34 ms
10,752 KB
testcase_03 AC 32 ms
10,624 KB
testcase_04 AC 31 ms
10,752 KB
testcase_05 AC 32 ms
10,752 KB
testcase_06 AC 30 ms
10,752 KB
testcase_07 AC 33 ms
10,752 KB
testcase_08 AC 31 ms
10,752 KB
testcase_09 AC 32 ms
10,752 KB
testcase_10 AC 32 ms
10,752 KB
testcase_11 AC 31 ms
10,752 KB
testcase_12 AC 32 ms
10,752 KB
testcase_13 AC 32 ms
10,752 KB
testcase_14 AC 32 ms
10,752 KB
testcase_15 AC 32 ms
10,752 KB
testcase_16 AC 33 ms
10,752 KB
testcase_17 AC 31 ms
10,752 KB
testcase_18 AC 32 ms
10,752 KB
testcase_19 AC 33 ms
10,752 KB
testcase_20 AC 32 ms
10,752 KB
testcase_21 AC 33 ms
10,752 KB
testcase_22 AC 33 ms
10,752 KB
testcase_23 AC 30 ms
10,752 KB
testcase_24 AC 32 ms
10,752 KB
testcase_25 AC 1,648 ms
35,132 KB
testcase_26 AC 1,577 ms
32,564 KB
testcase_27 AC 1,606 ms
32,700 KB
testcase_28 AC 1,620 ms
32,572 KB
testcase_29 AC 174 ms
32,568 KB
testcase_30 AC 131 ms
30,904 KB
testcase_31 AC 170 ms
32,692 KB
testcase_32 AC 142 ms
35,132 KB
testcase_33 AC 30 ms
10,752 KB
testcase_34 AC 31 ms
10,752 KB
testcase_35 AC 30 ms
10,752 KB
testcase_36 AC 892 ms
15,424 KB
testcase_37 AC 863 ms
15,424 KB
testcase_38 AC 923 ms
15,424 KB
testcase_39 AC 493 ms
15,204 KB
testcase_40 AC 1,627 ms
19,604 KB
testcase_41 AC 1,826 ms
19,748 KB
testcase_42 TLE -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
testcase_48 -- -
testcase_49 -- -
testcase_50 -- -
testcase_51 -- -
testcase_52 -- -
testcase_53 -- -
testcase_54 -- -
testcase_55 -- -
testcase_56 -- -
testcase_57 -- -
testcase_58 -- -
testcase_59 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD=10**9+7
N,M,X=map(int,input().split())
A=list(map(int,input().split()))
B=list(map(int,input().split()))
ans=1
for x in range(X):
    a=[(v>>x)%2 for v in A]
    b=[(v>>x)%2 for v in B]
    if sum(a)%2!=sum(b)%2:
        exit(print(0))
    ans=ans*pow(2,(N-1)*(M-1),MOD)%MOD
print(ans)
0