結果

問題 No.2715 Unique Chimatagram
ユーザー june19312june19312
提出日時 2024-04-05 21:30:38
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 578 bytes
コンパイル時間 182 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 63,192 KB
最終ジャッジ日時 2024-04-05 21:30:49
合計ジャッジ時間 3,949 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
53,460 KB
testcase_01 AC 31 ms
53,460 KB
testcase_02 AC 31 ms
53,460 KB
testcase_03 WA -
testcase_04 AC 32 ms
53,460 KB
testcase_05 AC 31 ms
53,460 KB
testcase_06 AC 31 ms
53,460 KB
testcase_07 AC 31 ms
53,460 KB
testcase_08 AC 41 ms
61,116 KB
testcase_09 WA -
testcase_10 AC 42 ms
61,116 KB
testcase_11 AC 44 ms
63,192 KB
testcase_12 AC 42 ms
61,116 KB
testcase_13 AC 53 ms
63,192 KB
testcase_14 AC 42 ms
61,116 KB
testcase_15 AC 44 ms
61,116 KB
testcase_16 AC 43 ms
61,116 KB
testcase_17 AC 42 ms
61,116 KB
testcase_18 AC 44 ms
63,192 KB
testcase_19 AC 44 ms
63,192 KB
testcase_20 AC 43 ms
63,192 KB
testcase_21 AC 43 ms
63,192 KB
testcase_22 AC 53 ms
63,192 KB
testcase_23 AC 44 ms
63,192 KB
testcase_24 AC 43 ms
63,192 KB
testcase_25 AC 44 ms
63,192 KB
testcase_26 AC 43 ms
63,192 KB
testcase_27 AC 45 ms
63,192 KB
testcase_28 AC 46 ms
61,116 KB
testcase_29 AC 45 ms
61,116 KB
testcase_30 AC 45 ms
61,116 KB
testcase_31 AC 53 ms
61,116 KB
testcase_32 AC 44 ms
61,116 KB
testcase_33 AC 31 ms
53,460 KB
testcase_34 AC 30 ms
53,460 KB
testcase_35 AC 31 ms
53,460 KB
testcase_36 AC 30 ms
53,460 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 43 ms
63,192 KB
testcase_42 AC 43 ms
63,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

dic = {}
for i in range(N):
    S = list(input())
    S.sort()
    nex = "".join(S)
    
    if nex in dic:
        dic[nex] += 1
    else:
        dic[nex] = 1

#print(dic)
abc = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]

for ind,val in dic.items():
    if val == 1:
        nex2 = list(ind)
        for j in abc:
            nex3 = nex2 + [j]
            nex3.sort()
            nex4 = "".join(nex3)
            if nex4 not in dic:
                print(nex4)
                exit()

print(-1)
0