結果
| 問題 | No.2715 Unique Chimatagram |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-15 00:16:40 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 2,000 ms |
| コード長 | 282 bytes |
| 記録 | |
| コンパイル時間 | 303 ms |
| コンパイル使用メモリ | 85,244 KB |
| 実行使用メモリ | 88,164 KB |
| 最終ジャッジ日時 | 2026-03-06 02:56:51 |
| 合計ジャッジ時間 | 5,321 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 40 |
ソースコード
from collections import Counter
from string import ascii_lowercase
cnt = Counter()
for _ in range(int(input())):
S = input()
for c in ascii_lowercase:
T = "".join(sorted(S + c))
cnt[T] += 1
for T, n in cnt.items():
if n == 1:
print(T)
break
else:
print(-1)