結果
| 問題 | No.2270 T0空間 |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2023-04-15 01:26:26 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 366 bytes |
| 記録 | |
| コンパイル時間 | 194 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 98,176 KB |
| 最終ジャッジ日時 | 2026-04-26 18:39:30 |
| 合計ジャッジ時間 | 11,221 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 TLE * 1 -- * 5 |
ソースコード
import sys
input = sys.stdin.readline
N=int(input())
M=int(input())
S=[input().strip() for i in range(M)]
LIST=[0]*(N*(N-1)//2)
for i in range(M):
x=S[i]
now=0
for j in range(N):
for k in range(j+1,N):
if x[j]!=x[k]:
LIST[now]=1
now+=1
if N==1 or min(LIST)==1:
print("Yes")
else:
print("No")
titia