結果

問題 No.2715 Unique Chimatagram
ユーザー loop0919loop0919
提出日時 2024-04-05 22:46:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 449 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 78,080 KB
最終ジャッジ日時 2024-04-05 22:46:18
合計ジャッジ時間 6,048 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
63,656 KB
testcase_01 AC 56 ms
63,656 KB
testcase_02 AC 56 ms
63,656 KB
testcase_03 WA -
testcase_04 AC 56 ms
63,656 KB
testcase_05 AC 60 ms
63,656 KB
testcase_06 AC 55 ms
63,656 KB
testcase_07 AC 58 ms
63,656 KB
testcase_08 AC 91 ms
76,952 KB
testcase_09 WA -
testcase_10 AC 90 ms
76,936 KB
testcase_11 AC 91 ms
77,060 KB
testcase_12 AC 90 ms
77,064 KB
testcase_13 AC 90 ms
77,060 KB
testcase_14 AC 88 ms
76,956 KB
testcase_15 AC 89 ms
77,064 KB
testcase_16 AC 88 ms
77,064 KB
testcase_17 AC 90 ms
77,064 KB
testcase_18 AC 96 ms
77,952 KB
testcase_19 AC 100 ms
77,952 KB
testcase_20 AC 96 ms
77,952 KB
testcase_21 AC 97 ms
77,952 KB
testcase_22 AC 96 ms
77,952 KB
testcase_23 AC 96 ms
77,952 KB
testcase_24 AC 96 ms
77,952 KB
testcase_25 AC 97 ms
77,952 KB
testcase_26 AC 96 ms
77,952 KB
testcase_27 AC 96 ms
77,952 KB
testcase_28 AC 90 ms
77,056 KB
testcase_29 AC 93 ms
77,056 KB
testcase_30 AC 91 ms
77,056 KB
testcase_31 AC 91 ms
77,056 KB
testcase_32 AC 91 ms
77,056 KB
testcase_33 AC 55 ms
63,656 KB
testcase_34 AC 57 ms
63,656 KB
testcase_35 AC 55 ms
63,656 KB
testcase_36 AC 56 ms
63,656 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 103 ms
77,184 KB
testcase_42 AC 100 ms
78,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict, Counter
from string import ascii_lowercase

N = int(input())
S = [''.join(sorted(input())) for _ in range(N)]

if N == 1:
    print(S[0] + 'z')
    exit()

di = defaultdict(list)

for c in ascii_lowercase:
    for s in S:
        di[c].append(''.join(sorted(s + c)))

for c in ascii_lowercase:
    for key, val in Counter(di[c]).items():
        if val == 1:
            print(key)
            exit()

print(-1)
0