結果

問題 No.1870 Xor Matrix
ユーザー ytqm3ytqm3
提出日時 2021-11-22 21:39:24
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 247 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 32,160 KB
最終ジャッジ日時 2023-10-14 05:18:42
合計ジャッジ時間 3,493 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,812 KB
testcase_01 AC 17 ms
7,792 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 130 ms
28,060 KB
testcase_05 WA -
testcase_06 AC 97 ms
21,652 KB
testcase_07 AC 112 ms
23,828 KB
testcase_08 WA -
testcase_09 AC 78 ms
22,120 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 116 ms
32,160 KB
testcase_13 AC 71 ms
18,936 KB
testcase_14 AC 132 ms
25,848 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 137 ms
31,000 KB
testcase_18 WA -
testcase_19 AC 118 ms
26,300 KB
testcase_20 AC 90 ms
22,188 KB
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
C = 0
for i in range(N):
  C ^= A[i]
for j in range(M):
  C ^= B[j]
if C == 0:
  print(pow(2, (N-1) * (M-1) * 60, 998244353))
else:
  print(0)
0