結果
| 問題 |
No.2270 T0空間
|
| コンテスト | |
| ユーザー |
MasKoaTS
|
| 提出日時 | 2023-02-22 20:36:33 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 383 bytes |
| コンパイル時間 | 257 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 55,468 KB |
| 最終ジャッジ日時 | 2024-07-22 21:28:03 |
| 合計ジャッジ時間 | 17,155 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 TLE * 2 -- * 8 |
ソースコード
import numpy as np
n = int(input())
m = int(input())
lis = [np.array([bool(int(c)) for c in input()]) for _ in [0] * m]
for i in range(n):
a = np.array([True] * n)
b = np.array([False] * n)
for bits in lis:
if(bits[i]):
a &= bits
else:
b |= bits
for j in range(n):
if(i == j):
continue
if(a[j] and np.logical_not(b[j])):
print("No")
exit(0)
print("Yes")
MasKoaTS