結果

問題 No.2715 Unique Chimatagram
ユーザー ShirotsumeShirotsume
提出日時 2024-04-05 21:35:08
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 510 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 77,080 KB
最終ジャッジ日時 2024-04-05 21:35:14
合計ジャッジ時間 5,188 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
66,304 KB
testcase_01 AC 54 ms
66,304 KB
testcase_02 AC 54 ms
66,304 KB
testcase_03 AC 56 ms
66,304 KB
testcase_04 AC 53 ms
66,304 KB
testcase_05 AC 54 ms
66,304 KB
testcase_06 AC 53 ms
66,304 KB
testcase_07 AC 52 ms
66,304 KB
testcase_08 AC 57 ms
68,364 KB
testcase_09 WA -
testcase_10 AC 65 ms
68,364 KB
testcase_11 AC 56 ms
68,364 KB
testcase_12 AC 56 ms
68,364 KB
testcase_13 AC 59 ms
68,364 KB
testcase_14 AC 63 ms
68,364 KB
testcase_15 AC 65 ms
68,364 KB
testcase_16 AC 58 ms
68,364 KB
testcase_17 AC 58 ms
68,364 KB
testcase_18 AC 57 ms
68,364 KB
testcase_19 AC 61 ms
68,364 KB
testcase_20 AC 56 ms
68,364 KB
testcase_21 AC 60 ms
68,364 KB
testcase_22 AC 62 ms
68,364 KB
testcase_23 AC 56 ms
68,364 KB
testcase_24 AC 62 ms
68,364 KB
testcase_25 AC 70 ms
68,364 KB
testcase_26 AC 58 ms
68,364 KB
testcase_27 AC 56 ms
68,364 KB
testcase_28 AC 67 ms
72,476 KB
testcase_29 AC 58 ms
68,364 KB
testcase_30 AC 63 ms
70,428 KB
testcase_31 AC 59 ms
68,364 KB
testcase_32 AC 78 ms
76,956 KB
testcase_33 AC 52 ms
66,304 KB
testcase_34 AC 59 ms
66,304 KB
testcase_35 AC 53 ms
66,304 KB
testcase_36 WA -
testcase_37 AC 51 ms
66,304 KB
testcase_38 WA -
testcase_39 AC 97 ms
76,696 KB
testcase_40 AC 64 ms
70,424 KB
testcase_41 AC 90 ms
76,960 KB
testcase_42 AC 353 ms
77,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, time, random
from collections import deque, Counter, defaultdict
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 61 - 1
mod = 998244353
import string
n = ii()
s = [sorted(input()) for _ in range(n)]

for v in s:
    if s.count(v) == 1:
        for x in string.ascii_lowercase:
            if sorted(''.join(v) + x)[:-1] not in s:
                print(''.join(v) + x)
                exit()
print(-1)
0