結果

問題 No.2270 T0空間
ユーザー titiatitia
提出日時 2023-04-15 01:25:17
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 319 bytes
コンパイル時間 381 ms
コンパイル使用メモリ 82,512 KB
実行使用メモリ 94,204 KB
最終ジャッジ日時 2024-04-18 22:35:21
合計ジャッジ時間 12,692 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
57,216 KB
testcase_01 AC 40 ms
52,224 KB
testcase_02 AC 39 ms
51,840 KB
testcase_03 AC 40 ms
51,968 KB
testcase_04 AC 39 ms
51,840 KB
testcase_05 AC 39 ms
51,840 KB
testcase_06 AC 39 ms
51,968 KB
testcase_07 AC 40 ms
51,584 KB
testcase_08 AC 39 ms
51,968 KB
testcase_09 AC 39 ms
51,968 KB
testcase_10 AC 39 ms
52,352 KB
testcase_11 AC 505 ms
80,128 KB
testcase_12 AC 432 ms
78,236 KB
testcase_13 TLE -
testcase_14 AC 1,880 ms
83,456 KB
testcase_15 TLE -
testcase_16 TLE -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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")
0