結果
| 問題 |
No.2715 Unique Chimatagram
|
| コンテスト | |
| ユーザー |
n_na
|
| 提出日時 | 2024-04-06 01:30:59 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 86 ms / 2,000 ms |
| コード長 | 353 bytes |
| コンパイル時間 | 272 ms |
| コンパイル使用メモリ | 82,224 KB |
| 実行使用メモリ | 81,612 KB |
| 最終ジャッジ日時 | 2024-10-01 03:19:37 |
| 合計ジャッジ時間 | 4,572 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 40 |
ソースコード
N = int(input())
dct = dict()
for _ in range(N):
s = list(input())
for i in range(26):
t = s[:]
t.append(chr(i+ord("a")))
t.sort()
t = "".join(t)
if t not in dct:
dct[t] = 0
dct[t] += 1
ans = -1
for k,v in dct.items():
if v == 1:
ans = k
break
print(ans)
n_na