結果

問題 No.2715 Unique Chimatagram
ユーザー ra5anchorra5anchor
提出日時 2024-04-10 00:02:05
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 474 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 82,472 KB
実行使用メモリ 77,636 KB
最終ジャッジ日時 2024-04-10 00:02:11
合計ジャッジ時間 5,335 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,100 KB
testcase_01 AC 37 ms
51,876 KB
testcase_02 AC 38 ms
53,108 KB
testcase_03 AC 38 ms
52,868 KB
testcase_04 AC 39 ms
52,708 KB
testcase_05 AC 40 ms
54,132 KB
testcase_06 AC 38 ms
53,192 KB
testcase_07 AC 38 ms
52,604 KB
testcase_08 AC 77 ms
76,808 KB
testcase_09 AC 78 ms
76,888 KB
testcase_10 AC 76 ms
76,620 KB
testcase_11 AC 75 ms
77,084 KB
testcase_12 AC 75 ms
76,632 KB
testcase_13 AC 75 ms
77,508 KB
testcase_14 AC 93 ms
77,392 KB
testcase_15 AC 79 ms
76,888 KB
testcase_16 AC 77 ms
76,936 KB
testcase_17 AC 74 ms
76,956 KB
testcase_18 AC 82 ms
77,004 KB
testcase_19 AC 81 ms
77,268 KB
testcase_20 AC 82 ms
77,196 KB
testcase_21 AC 82 ms
77,324 KB
testcase_22 AC 83 ms
77,256 KB
testcase_23 AC 82 ms
77,072 KB
testcase_24 AC 89 ms
77,132 KB
testcase_25 AC 98 ms
77,636 KB
testcase_26 AC 84 ms
77,484 KB
testcase_27 AC 83 ms
77,560 KB
testcase_28 AC 55 ms
61,588 KB
testcase_29 AC 55 ms
61,856 KB
testcase_30 AC 56 ms
62,376 KB
testcase_31 AC 54 ms
61,960 KB
testcase_32 AC 53 ms
61,788 KB
testcase_33 AC 38 ms
52,344 KB
testcase_34 AC 37 ms
51,748 KB
testcase_35 AC 37 ms
52,280 KB
testcase_36 AC 37 ms
51,996 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 55 ms
61,724 KB
testcase_42 AC 61 ms
63,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = []
for i in range(N):
    s = input()
    t = list(s)
    t.sort()
    s = ''.join(t)
    S.append(s)
S.sort()
T = []
for i in range(N):
    if S.count(S[i]) == 1:
        T.append(S[i])
# print(T)
U = []
for t in T:
    for i in range(26):
        c = chr(ord("a")+i)
        u = list(t)
        u.append(c)
        u.sort()
        u = ''.join(u)
        U.append(u)
# print(U)
for u in U:
    if u not in S:
        print(u)
        exit()
print(-1)
0