結果
問題 |
No.2270 T0空間
|
ユーザー |
![]() |
提出日時 | 2023-04-15 01:25:17 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 319 bytes |
コンパイル時間 | 150 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 94,452 KB |
最終ジャッジ日時 | 2024-10-10 16:06:24 |
合計ジャッジ時間 | 12,694 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 TLE * 3 -- * 5 |
ソースコード
N=int(input()) M=int(input()) S=[input() 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")