結果
| 問題 | No.2715 Unique Chimatagram |
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-05-14 21:45:26 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 105 ms / 2,000 ms |
| コード長 | 271 bytes |
| 記録 | |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 95,340 KB |
| 実行使用メモリ | 89,548 KB |
| 最終ジャッジ日時 | 2026-07-10 17:04:26 |
| 合計ジャッジ時間 | 6,323 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 40 |
ソースコード
from collections import defaultdict
dic = defaultdict(int)
N = int(input())
for _ in range(N):
s = list(input())
for i in range(26):
dic["".join(sorted(s+[chr(97+i)]))] += 1
for k,v in dic.items():
if v == 1:
print(k)
exit()
print(-1)
ntuda