結果
| 問題 | No.2715 Unique Chimatagram |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-15 00:16:40 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 72 ms / 2,000 ms |
| + 414µs | |
| コード長 | 282 bytes |
| 記録 | |
| コンパイル時間 | 209 ms |
| コンパイル使用メモリ | 64,724 KB |
| 実行使用メモリ | 67,228 KB |
| 最終ジャッジ日時 | 2026-11-08 12:13:53 |
| 合計ジャッジ時間 | 5,473 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 42 |
ソースコード
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)