結果

問題 No.2715 Unique Chimatagram
ユーザー 👑 p-adicp-adic
提出日時 2024-02-08 18:03:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 249 ms / 2,000 ms
コード長 452 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 13,136 KB
最終ジャッジ日時 2024-02-08 20:52:51
合計ジャッジ時間 8,804 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,112 KB
testcase_01 AC 28 ms
10,112 KB
testcase_02 AC 29 ms
10,112 KB
testcase_03 AC 29 ms
10,112 KB
testcase_04 AC 29 ms
10,112 KB
testcase_05 AC 29 ms
10,112 KB
testcase_06 AC 29 ms
10,112 KB
testcase_07 AC 28 ms
10,112 KB
testcase_08 AC 223 ms
11,704 KB
testcase_09 AC 235 ms
12,984 KB
testcase_10 AC 237 ms
11,700 KB
testcase_11 AC 240 ms
12,976 KB
testcase_12 AC 230 ms
11,700 KB
testcase_13 AC 239 ms
12,980 KB
testcase_14 AC 219 ms
11,696 KB
testcase_15 AC 233 ms
11,700 KB
testcase_16 AC 224 ms
11,700 KB
testcase_17 AC 232 ms
11,700 KB
testcase_18 AC 246 ms
13,136 KB
testcase_19 AC 245 ms
13,136 KB
testcase_20 AC 246 ms
13,132 KB
testcase_21 AC 245 ms
13,136 KB
testcase_22 AC 245 ms
13,136 KB
testcase_23 AC 245 ms
13,132 KB
testcase_24 AC 246 ms
13,132 KB
testcase_25 AC 249 ms
13,136 KB
testcase_26 AC 247 ms
13,008 KB
testcase_27 AC 247 ms
13,136 KB
testcase_28 AC 240 ms
10,240 KB
testcase_29 AC 239 ms
10,240 KB
testcase_30 AC 238 ms
10,240 KB
testcase_31 AC 240 ms
10,240 KB
testcase_32 AC 239 ms
10,240 KB
testcase_33 AC 28 ms
10,112 KB
testcase_34 AC 28 ms
10,112 KB
testcase_35 AC 28 ms
10,112 KB
testcase_36 AC 29 ms
10,112 KB
testcase_37 AC 29 ms
10,112 KB
testcase_38 AC 38 ms
10,112 KB
testcase_39 AC 174 ms
10,496 KB
testcase_40 AC 164 ms
10,496 KB
testcase_41 AC 244 ms
11,520 KB
testcase_42 AC 237 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):
		h=sum((H[j]+(i==j))*11**j for j in R(26))
		if h in D:D[h]+=1
		else:D[h]=1
print(" ","\n","\r","\r\n")
for h in D:
	if D[h]<2:
		a=""
		for i in R(26):
			for n in R(h//(11**i)%11):a+=chr(i+97)
		exit(print(" ","\n","\r","\r\n",a," ","\n","\r","\r\n",))
print(" ","\n","\r","\r\n",-1," ","\n","\r","\r\n")
0