結果

問題 No.2715 Unique Chimatagram
ユーザー nikoro256nikoro256
提出日時 2024-04-05 21:41:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 102 ms / 2,000 ms
コード長 340 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 91,952 KB
最終ジャッジ日時 2024-04-05 21:41:47
合計ジャッジ時間 4,749 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
58,692 KB
testcase_01 AC 38 ms
58,692 KB
testcase_02 AC 38 ms
60,812 KB
testcase_03 AC 37 ms
58,684 KB
testcase_04 AC 39 ms
60,812 KB
testcase_05 AC 37 ms
60,812 KB
testcase_06 AC 37 ms
60,776 KB
testcase_07 AC 36 ms
58,684 KB
testcase_08 AC 86 ms
83,760 KB
testcase_09 AC 89 ms
84,056 KB
testcase_10 AC 86 ms
84,052 KB
testcase_11 AC 84 ms
84,400 KB
testcase_12 AC 85 ms
83,760 KB
testcase_13 AC 100 ms
83,924 KB
testcase_14 AC 86 ms
84,052 KB
testcase_15 AC 87 ms
84,052 KB
testcase_16 AC 87 ms
83,632 KB
testcase_17 AC 87 ms
83,760 KB
testcase_18 AC 101 ms
91,952 KB
testcase_19 AC 100 ms
91,952 KB
testcase_20 AC 97 ms
91,952 KB
testcase_21 AC 97 ms
91,952 KB
testcase_22 AC 96 ms
91,952 KB
testcase_23 AC 95 ms
91,952 KB
testcase_24 AC 102 ms
91,952 KB
testcase_25 AC 96 ms
91,952 KB
testcase_26 AC 98 ms
91,952 KB
testcase_27 AC 98 ms
91,952 KB
testcase_28 AC 80 ms
77,100 KB
testcase_29 AC 80 ms
77,096 KB
testcase_30 AC 79 ms
77,032 KB
testcase_31 AC 80 ms
77,144 KB
testcase_32 AC 78 ms
77,032 KB
testcase_33 AC 34 ms
53,460 KB
testcase_34 AC 34 ms
55,612 KB
testcase_35 AC 36 ms
58,684 KB
testcase_36 AC 37 ms
58,684 KB
testcase_37 AC 43 ms
58,684 KB
testcase_38 AC 45 ms
66,508 KB
testcase_39 AC 74 ms
77,160 KB
testcase_40 AC 72 ms
76,904 KB
testcase_41 AC 84 ms
80,572 KB
testcase_42 AC 79 ms
76,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
N=int(input())
S=[]
dic=defaultdict(int)
abc='abcdefghijklnmopqrstuvwxyz'
for _ in range(N):
    S.append(list(input()))
    S[-1].sort()
    for i in range(len(abc)):
        dic[tuple(sorted(S[-1]+[abc[i]]))]+=1
for k in dic.keys():
    if dic[k]==1:
        print(''.join(k))
        exit(0)
print(-1)
0