結果
| 問題 |
No.2715 Unique Chimatagram
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-05-14 21:45:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 100 ms / 2,000 ms |
| コード長 | 271 bytes |
| コンパイル時間 | 373 ms |
| コンパイル使用メモリ | 82,560 KB |
| 実行使用メモリ | 81,792 KB |
| 最終ジャッジ日時 | 2025-05-14 21:45:33 |
| 合計ジャッジ時間 | 5,170 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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