結果
問題 |
No.2911 位相の公理
|
ユーザー |
![]() |
提出日時 | 2024-10-04 21:34:29 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 474 bytes |
コンパイル時間 | 189 ms |
コンパイル使用メモリ | 82,116 KB |
実行使用メモリ | 70,152 KB |
最終ジャッジ日時 | 2024-10-04 21:34:32 |
合計ジャッジ時間 | 1,935 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 WA * 9 |
ソースコード
N, M = map(int, input().split()) S = set() for i in range(M): s = int(input()) S.add(s) N2 = 1 << N if N2 - 1 not in S: print("No") exit() for s1 in S: for s2 in S: if s1 & s2 not in S: print("No") exit() L = list(S) for ss in range(N2): temp = 0 for i in range(N): if (ss >> i) & 1: temp |= L[i] if temp not in S: print("No") exit() print("Yes")