結果
| 問題 | No.3229 Liar Game Comibination |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2025-08-11 11:39:10 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 416 bytes |
| 記録 | |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 96,236 KB |
| 実行使用メモリ | 192,896 KB |
| 最終ジャッジ日時 | 2026-07-13 22:45:51 |
| 合計ジャッジ時間 | 10,986 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 TLE * 2 -- * 9 |
ソースコード
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