結果

問題 No.2270 T0空間
ユーザー shobonvipshobonvip
提出日時 2023-04-14 21:54:09
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 323 bytes
コンパイル時間 365 ms
コンパイル使用メモリ 82,404 KB
実行使用メモリ 90,736 KB
最終ジャッジ日時 2024-04-18 19:18:08
合計ジャッジ時間 7,262 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
61,396 KB
testcase_01 AC 39 ms
54,200 KB
testcase_02 AC 40 ms
53,848 KB
testcase_03 AC 41 ms
55,004 KB
testcase_04 AC 41 ms
54,932 KB
testcase_05 AC 41 ms
55,012 KB
testcase_06 AC 40 ms
54,428 KB
testcase_07 AC 43 ms
55,136 KB
testcase_08 AC 40 ms
54,264 KB
testcase_09 AC 39 ms
54,496 KB
testcase_10 AC 41 ms
55,176 KB
testcase_11 AC 109 ms
77,204 KB
testcase_12 AC 91 ms
77,276 KB
testcase_13 AC 182 ms
80,496 KB
testcase_14 AC 182 ms
82,440 KB
testcase_15 AC 182 ms
80,684 KB
testcase_16 AC 270 ms
82,904 KB
testcase_17 AC 371 ms
84,224 KB
testcase_18 AC 391 ms
84,260 KB
testcase_19 TLE -
testcase_20 -- -
testcase_21 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import random
n = int(input())
m = int(input())

# n <= 512
# m <= 65536

r = [int(input(),2) for i in range(m)]
random.shuffle(r)

for i in range(n):
	for j in range(i+1, n):
		mode = 0
		for k in range(m):
			if r[k] >> i & 1 != r[k] >> j & 1:
				mode = 1
				break
		if mode == 0:
			print("No")
			exit()

print("Yes")
0