結果
| 問題 | No.2715 Unique Chimatagram |
| コンテスト | |
| ユーザー |
n_na
|
| 提出日時 | 2024-04-06 01:30:59 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 66 ms / 2,000 ms |
| コード長 | 353 bytes |
| 記録 | |
| コンパイル時間 | 294 ms |
| コンパイル使用メモリ | 84,864 KB |
| 実行使用メモリ | 87,040 KB |
| 最終ジャッジ日時 | 2026-04-17 03:36:08 |
| 合計ジャッジ時間 | 3,955 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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