結果

問題 No.2715 Unique Chimatagram
ユーザー Jeroen Op de BeekJeroen Op de Beek
提出日時 2024-04-05 21:30:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 286 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 81,676 KB
最終ジャッジ日時 2024-04-05 21:30:54
合計ジャッジ時間 4,156 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
55,612 KB
testcase_01 AC 34 ms
53,460 KB
testcase_02 AC 37 ms
55,612 KB
testcase_03 AC 36 ms
55,612 KB
testcase_04 AC 34 ms
55,612 KB
testcase_05 AC 39 ms
55,612 KB
testcase_06 AC 39 ms
55,612 KB
testcase_07 AC 36 ms
55,612 KB
testcase_08 AC 70 ms
80,144 KB
testcase_09 AC 70 ms
80,144 KB
testcase_10 AC 72 ms
80,144 KB
testcase_11 AC 74 ms
80,784 KB
testcase_12 AC 72 ms
80,140 KB
testcase_13 AC 69 ms
80,144 KB
testcase_14 AC 88 ms
80,144 KB
testcase_15 AC 72 ms
80,144 KB
testcase_16 AC 70 ms
80,144 KB
testcase_17 AC 69 ms
80,144 KB
testcase_18 AC 75 ms
81,676 KB
testcase_19 AC 74 ms
81,676 KB
testcase_20 AC 75 ms
81,676 KB
testcase_21 AC 75 ms
81,676 KB
testcase_22 AC 74 ms
81,676 KB
testcase_23 AC 74 ms
81,676 KB
testcase_24 AC 73 ms
81,676 KB
testcase_25 AC 75 ms
81,676 KB
testcase_26 AC 98 ms
81,676 KB
testcase_27 AC 74 ms
81,676 KB
testcase_28 AC 69 ms
76,560 KB
testcase_29 AC 68 ms
76,432 KB
testcase_30 AC 65 ms
76,432 KB
testcase_31 AC 64 ms
76,432 KB
testcase_32 AC 68 ms
76,432 KB
testcase_33 AC 34 ms
53,460 KB
testcase_34 AC 37 ms
53,460 KB
testcase_35 AC 35 ms
55,612 KB
testcase_36 AC 35 ms
55,612 KB
testcase_37 AC 34 ms
55,612 KB
testcase_38 AC 49 ms
66,908 KB
testcase_39 AC 63 ms
76,688 KB
testcase_40 AC 62 ms
76,688 KB
testcase_41 AC 90 ms
78,352 KB
testcase_42 AC 67 ms
76,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict


res = defaultdict(int)
for _ in range(int(input())):
    s = input().strip()
    for i in range(26):
        nc = chr(ord('a')+i)
        res[''.join( sorted(s+nc)) ]+=1
for i,v in res.items():
    if v==1:
        print(i)
        exit()
print(-1)
0