結果

問題 No.2715 Unique Chimatagram
ユーザー 👑 p-adicp-adic
提出日時 2024-02-08 10:37:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 185 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 12,736 KB
最終ジャッジ日時 2024-02-08 20:52:29
合計ジャッジ時間 7,096 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,984 KB
testcase_01 AC 28 ms
9,984 KB
testcase_02 AC 29 ms
9,984 KB
testcase_03 AC 31 ms
10,112 KB
testcase_04 AC 30 ms
10,112 KB
testcase_05 AC 30 ms
10,112 KB
testcase_06 AC 30 ms
10,112 KB
testcase_07 AC 28 ms
10,112 KB
testcase_08 AC 164 ms
11,712 KB
testcase_09 AC 175 ms
12,736 KB
testcase_10 AC 173 ms
11,840 KB
testcase_11 AC 178 ms
12,736 KB
testcase_12 AC 171 ms
11,840 KB
testcase_13 AC 177 ms
12,736 KB
testcase_14 AC 165 ms
11,840 KB
testcase_15 AC 173 ms
11,840 KB
testcase_16 AC 169 ms
11,712 KB
testcase_17 AC 172 ms
11,840 KB
testcase_18 AC 182 ms
12,736 KB
testcase_19 AC 182 ms
12,736 KB
testcase_20 AC 183 ms
12,736 KB
testcase_21 AC 182 ms
12,736 KB
testcase_22 AC 182 ms
12,736 KB
testcase_23 AC 184 ms
12,736 KB
testcase_24 AC 185 ms
12,736 KB
testcase_25 AC 185 ms
12,736 KB
testcase_26 AC 184 ms
12,736 KB
testcase_27 AC 185 ms
12,736 KB
testcase_28 AC 174 ms
10,240 KB
testcase_29 AC 174 ms
10,240 KB
testcase_30 AC 174 ms
10,240 KB
testcase_31 AC 174 ms
10,240 KB
testcase_32 AC 175 ms
10,240 KB
testcase_33 AC 29 ms
9,984 KB
testcase_34 AC 29 ms
9,984 KB
testcase_35 AC 28 ms
9,984 KB
testcase_36 AC 29 ms
9,984 KB
testcase_37 AC 29 ms
9,984 KB
testcase_38 AC 35 ms
10,112 KB
testcase_39 AC 130 ms
10,496 KB
testcase_40 AC 122 ms
10,496 KB
testcase_41 AC 178 ms
11,392 KB
testcase_42 AC 174 ms
10,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

I,R=input,range
D={}
for n in R(int(I())):
	H=[0]*26
	for s in I():H[ord(s)-97]+=1
	for i in R(26):
		S="".join(chr(j+97)*(H[j]+(i==j))for j in R(26))
		if S in D:D[S]+=1
		else:D[S]=1
for S in D:
	if D[S]<2:exit(print(S))
print(-1)
0