結果
| 問題 |
No.3229 Liar Game Comibination
|
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2025-08-11 11:39:10 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 416 bytes |
| コンパイル時間 | 169 ms |
| コンパイル使用メモリ | 82,288 KB |
| 実行使用メモリ | 112,548 KB |
| 最終ジャッジ日時 | 2025-08-11 11:39:22 |
| 合計ジャッジ時間 | 10,675 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 TLE * 2 -- * 10 |
ソースコード
N, M, K = map(int, input().split())
S = list(map(list, zip(*[list(map(int, list(input()))) for _ in range(M)])))
base = []
for s in S:
for b in base:
for i in range(M):
if b[i] == 0:
continue
if s[i] == 1:
for j in range(i, M):
s[j] ^= b[j]
break
if 1 in s:
base.append(s)
print(pow(2, N-len(base), K))
detteiuu