結果

問題 No.2270 T0空間
ユーザー MasKoaTSMasKoaTS
提出日時 2023-02-22 20:36:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 383 bytes
コンパイル時間 324 ms
コンパイル使用メモリ 10,920 KB
実行使用メモリ 48,200 KB
最終ジャッジ日時 2023-09-30 03:29:11
合計ジャッジ時間 15,577 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 797 ms
34,028 KB
testcase_01 AC 122 ms
29,760 KB
testcase_02 AC 124 ms
29,704 KB
testcase_03 AC 123 ms
29,584 KB
testcase_04 AC 123 ms
29,652 KB
testcase_05 AC 125 ms
29,620 KB
testcase_06 AC 125 ms
29,600 KB
testcase_07 AC 123 ms
29,496 KB
testcase_08 AC 123 ms
29,700 KB
testcase_09 AC 124 ms
29,584 KB
testcase_10 AC 123 ms
29,592 KB
testcase_11 AC 1,815 ms
38,444 KB
testcase_12 AC 829 ms
33,328 KB
testcase_13 AC 1,971 ms
43,560 KB
testcase_14 TLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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")
0