結果

問題 No.2715 Unique Chimatagram
ユーザー 👑 p-adicp-adic
提出日時 2024-02-07 23:33:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 696 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 141 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 84,412 KB
最終ジャッジ日時 2024-02-08 20:52:18
合計ジャッジ時間 21,886 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
66,104 KB
testcase_01 AC 46 ms
64,012 KB
testcase_02 AC 52 ms
70,204 KB
testcase_03 AC 61 ms
75,196 KB
testcase_04 AC 64 ms
75,196 KB
testcase_05 AC 61 ms
75,196 KB
testcase_06 AC 63 ms
75,196 KB
testcase_07 AC 53 ms
72,252 KB
testcase_08 AC 642 ms
82,876 KB
testcase_09 AC 669 ms
82,876 KB
testcase_10 AC 674 ms
82,876 KB
testcase_11 AC 682 ms
83,516 KB
testcase_12 AC 664 ms
82,876 KB
testcase_13 AC 691 ms
82,876 KB
testcase_14 AC 636 ms
82,748 KB
testcase_15 AC 664 ms
82,876 KB
testcase_16 AC 648 ms
82,748 KB
testcase_17 AC 666 ms
82,876 KB
testcase_18 AC 686 ms
84,412 KB
testcase_19 AC 689 ms
84,412 KB
testcase_20 AC 682 ms
84,412 KB
testcase_21 AC 683 ms
84,412 KB
testcase_22 AC 681 ms
84,412 KB
testcase_23 AC 687 ms
84,412 KB
testcase_24 AC 685 ms
84,412 KB
testcase_25 AC 696 ms
84,412 KB
testcase_26 AC 683 ms
84,412 KB
testcase_27 AC 688 ms
84,412 KB
testcase_28 AC 679 ms
76,988 KB
testcase_29 AC 675 ms
76,860 KB
testcase_30 AC 675 ms
76,988 KB
testcase_31 AC 675 ms
76,988 KB
testcase_32 AC 679 ms
77,244 KB
testcase_33 AC 38 ms
55,592 KB
testcase_34 AC 46 ms
64,012 KB
testcase_35 AC 49 ms
66,104 KB
testcase_36 AC 49 ms
66,104 KB
testcase_37 AC 51 ms
70,204 KB
testcase_38 AC 102 ms
75,964 KB
testcase_39 AC 518 ms
77,372 KB
testcase_40 AC 487 ms
77,244 KB
testcase_41 AC 687 ms
80,316 KB
testcase_42 AC 662 ms
76,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

I,R=input,range
D={}
B=1001
for n in R(int(I())):
	H=[0]*26
	for s in I():H[ord(s)-97]+=1
	for i in R(26):
		h=sum((H[j]+(i==j))*B**j for j in R(26))
		if h in D:D[h]+=1
		else:D[h]=1
for h in D:
	if D[h]<2:
		a=""
		for i in R(26):
			for n in R(h//(B**i)%B):a+=chr(i+97)
		exit(print(a))
print(-1)
0