結果

問題 No.2715 Unique Chimatagram
ユーザー akasia_midoriakasia_midori
提出日時 2024-04-05 21:36:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 711 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 65,268 KB
最終ジャッジ日時 2024-04-05 21:36:50
合計ジャッジ時間 7,039 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 37 ms
55,620 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 36 ms
55,620 KB
testcase_35 AC 34 ms
55,620 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 42 ms
57,668 KB
testcase_40 WA -
testcase_41 AC 51 ms
65,268 KB
testcase_42 AC 48 ms
65,268 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def oi(): return int(input())
def os(): return input().rstrip()
def mi(): return list(map(int, input().split()))

# import sys
# input = sys.stdin.readline
# import sys
# sys.setrecursionlimit(10**8)
# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
from collections import defaultdict
input_count = 0

N = oi()
out = set([])
dicts = defaultdict(int)
for _ in range(N):
    S = "".join(sorted(list(os())))
    dicts[S] += 1

alpha = [chr(ord("a")+i) for i in range(26)]
output = "-1"
flg = False
for o in out:
    if dicts[o]!=1:
        continue
    for a in alpha:
        if o+a not in out:
            output = o+a
            flg=True
            break
    if flg:
        break
print(output)
0