結果
問題 |
No.2270 T0空間
|
ユーザー |
![]() |
提出日時 | 2023-04-15 01:26:26 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 366 bytes |
コンパイル時間 | 252 ms |
コンパイル使用メモリ | 82,356 KB |
実行使用メモリ | 93,980 KB |
最終ジャッジ日時 | 2024-10-10 16:07:23 |
合計ジャッジ時間 | 12,298 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 TLE * 3 -- * 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")