結果

問題 No.2270 T0空間
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2023-04-14 22:09:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 837 ms / 2,000 ms
コード長 251 bytes
コンパイル時間 448 ms
コンパイル使用メモリ 82,332 KB
実行使用メモリ 179,460 KB
最終ジャッジ日時 2024-04-18 19:36:37
合計ジャッジ時間 8,535 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
53,760 KB
testcase_01 AC 42 ms
54,144 KB
testcase_02 AC 40 ms
53,632 KB
testcase_03 AC 42 ms
54,144 KB
testcase_04 AC 40 ms
53,760 KB
testcase_05 AC 46 ms
53,888 KB
testcase_06 AC 42 ms
54,016 KB
testcase_07 AC 41 ms
53,888 KB
testcase_08 AC 41 ms
54,144 KB
testcase_09 AC 41 ms
54,016 KB
testcase_10 AC 42 ms
53,888 KB
testcase_11 AC 137 ms
91,476 KB
testcase_12 AC 105 ms
83,328 KB
testcase_13 AC 248 ms
107,576 KB
testcase_14 AC 253 ms
107,808 KB
testcase_15 AC 241 ms
107,432 KB
testcase_16 AC 442 ms
131,228 KB
testcase_17 AC 837 ms
179,448 KB
testcase_18 AC 787 ms
179,328 KB
testcase_19 AC 805 ms
179,460 KB
testcase_20 AC 810 ms
179,324 KB
testcase_21 AC 814 ms
179,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import random

M = int(input())
N = int(input())

S = [input() for i in range(N)]
s = set()

for j in range(M):
    
    col = "".join( [S[i][j] for i in range(N)] )
    s.add(col)

if len(s) != M:
    print ("No")
else:
    print ("Yes")
0