結果
| 問題 | No.2715 Unique Chimatagram |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-06-17 18:22:50 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 65 ms / 2,000 ms |
| + 10µs | |
| コード長 | 341 bytes |
| 記録 | |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 64,132 KB |
| 実行使用メモリ | 65,632 KB |
| 最終ジャッジ日時 | 2026-11-08 12:47:40 |
| 合計ジャッジ時間 | 5,063 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge7_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 42 |
ソースコード
from collections import Counter
N = int(input())
cnt = Counter()
for _ in range(N):
T = input()
for i in range(ord("a"),ord("z")+1):
S = list(T)
S.append(chr(i))
S.sort()
cnt["".join(S)] += 1
for key, c in cnt.items():
if c == 1:
print(key)
exit()
print(-1)