結果
問題 |
No.3229 Liar Game Comibination
|
ユーザー |
![]() |
提出日時 | 2025-08-11 11:41:08 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 1,415 ms / 2,000 ms |
コード長 | 247 bytes |
コンパイル時間 | 328 ms |
コンパイル使用メモリ | 82,376 KB |
実行使用メモリ | 343,664 KB |
最終ジャッジ日時 | 2025-08-11 11:41:21 |
合計ジャッジ時間 | 12,353 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
N, M, K = map(int, input().split()) S = list(map(list, zip(*[input() for _ in range(M)]))) base = [] for s in S: s = int("".join(s), 2) for b in base: s = min(s, s^b) if s: base.append(s) print(pow(2, N-len(base), K))