結果

問題 No.2270 T0空間
ユーザー titiatitia
提出日時 2023-04-15 01:26:26
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 366 bytes
コンパイル時間 361 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 92,160 KB
最終ジャッジ日時 2024-04-18 22:36:19
合計ジャッジ時間 12,171 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
57,600 KB
testcase_01 AC 37 ms
51,968 KB
testcase_02 AC 35 ms
51,456 KB
testcase_03 AC 37 ms
51,840 KB
testcase_04 AC 37 ms
51,584 KB
testcase_05 AC 36 ms
51,712 KB
testcase_06 AC 38 ms
51,712 KB
testcase_07 AC 37 ms
51,968 KB
testcase_08 AC 38 ms
52,352 KB
testcase_09 AC 37 ms
52,352 KB
testcase_10 AC 38 ms
51,840 KB
testcase_11 AC 454 ms
78,976 KB
testcase_12 AC 374 ms
78,080 KB
testcase_13 AC 1,910 ms
82,944 KB
testcase_14 AC 1,777 ms
83,200 KB
testcase_15 AC 1,841 ms
82,816 KB
testcase_16 TLE -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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