結果
| 問題 |
No.2270 T0空間
|
| コンテスト | |
| ユーザー |
MasKoaTS
|
| 提出日時 | 2023-02-22 20:20:06 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 357 bytes |
| コンパイル時間 | 243 ms |
| コンパイル使用メモリ | 82,248 KB |
| 実行使用メモリ | 66,780 KB |
| 最終ジャッジ日時 | 2024-07-22 21:09:02 |
| 合計ジャッジ時間 | 3,706 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 22 |
ソースコード
from bitarray import bitarray
n = int(input())
m = int(input())
st = [bitarray(input()) for _ in [0] * m]
for i in range(n):
a = bitarray([True] * n)
b = bitarray([False] * n)
for bits in st:
if(bits[i]):
a &= bits
else:
b |= bits
for j in range(n):
if(i == j):
continue
if(a[j] and not(b[j])):
print("No")
exit(0)
print("Yes")
MasKoaTS