結果

問題 No.2715 Unique Chimatagram
ユーザー 👑 p-adicp-adic
提出日時 2024-02-08 10:37:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 81,696 KB
最終ジャッジ日時 2024-02-08 20:52:30
合計ジャッジ時間 5,886 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
60,032 KB
testcase_01 AC 44 ms
60,032 KB
testcase_02 AC 46 ms
62,240 KB
testcase_03 AC 47 ms
62,240 KB
testcase_04 AC 48 ms
62,240 KB
testcase_05 AC 47 ms
62,240 KB
testcase_06 AC 49 ms
64,316 KB
testcase_07 AC 48 ms
62,252 KB
testcase_08 AC 119 ms
80,040 KB
testcase_09 AC 119 ms
80,032 KB
testcase_10 AC 123 ms
80,672 KB
testcase_11 AC 126 ms
80,680 KB
testcase_12 AC 119 ms
80,036 KB
testcase_13 AC 125 ms
80,680 KB
testcase_14 AC 118 ms
80,032 KB
testcase_15 AC 128 ms
80,800 KB
testcase_16 AC 117 ms
80,032 KB
testcase_17 AC 118 ms
80,032 KB
testcase_18 AC 122 ms
81,696 KB
testcase_19 AC 122 ms
81,448 KB
testcase_20 AC 123 ms
81,448 KB
testcase_21 AC 123 ms
81,448 KB
testcase_22 AC 123 ms
81,320 KB
testcase_23 AC 123 ms
81,448 KB
testcase_24 AC 131 ms
81,448 KB
testcase_25 AC 138 ms
81,316 KB
testcase_26 AC 131 ms
81,440 KB
testcase_27 AC 136 ms
81,320 KB
testcase_28 AC 105 ms
76,708 KB
testcase_29 AC 101 ms
76,696 KB
testcase_30 AC 102 ms
76,708 KB
testcase_31 AC 107 ms
76,824 KB
testcase_32 AC 111 ms
76,708 KB
testcase_33 AC 36 ms
53,460 KB
testcase_34 AC 43 ms
60,032 KB
testcase_35 AC 43 ms
60,032 KB
testcase_36 AC 43 ms
60,032 KB
testcase_37 AC 44 ms
60,032 KB
testcase_38 AC 55 ms
68,864 KB
testcase_39 AC 120 ms
77,080 KB
testcase_40 AC 113 ms
76,824 KB
testcase_41 AC 123 ms
79,268 KB
testcase_42 AC 96 ms
76,448 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