結果
| 問題 | No.2715 Unique Chimatagram |
| コンテスト | |
| ユーザー |
n_na
|
| 提出日時 | 2024-04-06 01:30:59 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 56 ms / 2,000 ms |
| + 335µs | |
| コード長 | 353 bytes |
| 記録 | |
| コンパイル時間 | 617 ms |
| コンパイル使用メモリ | 64,472 KB |
| 実行使用メモリ | 64,384 KB |
| 最終ジャッジ日時 | 2026-11-08 11:59:28 |
| 合計ジャッジ時間 | 5,251 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge7_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 42 |
ソースコード
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