結果
| 問題 |
No.2270 T0空間
|
| コンテスト | |
| ユーザー |
MasKoaTS
|
| 提出日時 | 2023-02-24 20:59:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 452 bytes |
| コンパイル時間 | 103 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 55,516 KB |
| 最終ジャッジ日時 | 2024-09-13 04:39:15 |
| 合計ジャッジ時間 | 12,230 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 TLE * 1 -- * 10 |
ソースコード
import numpy as np
import sys
input = sys.stdin.readline
def solve():
n = int(input())
m = int(input())
mat = np.array([np.array(list(input().rstrip())).astype(bool) for _ in [0] * m])
for i in range(n):
a = np.prod(np.array([v for v in mat if(v[i])]), axis = 0).astype(bool)
b = np.sum(np.array([v for v in mat if not(v[i]) ]), axis = 0).astype(bool)
c = a & ~b
c[i] = False
if c.any():
print("No")
exit(0)
print("Yes")
solve()
MasKoaTS