結果
| 問題 | No.2270 T0空間 |
| コンテスト | |
| ユーザー |
MasKoaTS
|
| 提出日時 | 2023-02-22 20:43:07 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 388 bytes |
| 記録 | |
| コンパイル時間 | 583 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 221,328 KB |
| 最終ジャッジ日時 | 2024-07-22 21:33:45 |
| 合計ジャッジ時間 | 14,121 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 TLE * 3 -- * 4 |
ソースコード
n = int(input())
m = int(input())
lis = [[bool(int(c)) for c in input()] for _ in [0] * m]
for i in range(n):
a = [True] * n
b = [False] * n
for bits in lis:
if(bits[i]):
for j, f in enumerate(bits):
a[j] &= f
else:
for j, f in enumerate(bits):
b[j] |= f
for j in range(n):
if(i == j):
continue
if(a[j] and not(b[j])):
print("No")
exit(0)
print("Yes")
MasKoaTS