結果
| 問題 | No.2715 Unique Chimatagram | 
| コンテスト | |
| ユーザー | 👑 | 
| 提出日時 | 2024-02-08 10:37:09 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 177 ms / 2,000 ms | 
| コード長 | 232 bytes | 
| コンパイル時間 | 324 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 13,508 KB | 
| 最終ジャッジ日時 | 2024-09-28 12:50:27 | 
| 合計ジャッジ時間 | 6,977 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 40 | 
ソースコード
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)
            
            
            
        