結果
問題 | No.2715 Unique Chimatagram |
ユーザー |
|
提出日時 | 2024-11-08 20:08:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 126 ms / 2,000 ms |
コード長 | 284 bytes |
コンパイル時間 | 207 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 89,088 KB |
最終ジャッジ日時 | 2024-11-08 20:08:45 |
合計ジャッジ時間 | 5,574 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 40 |
ソースコード
N = int(input())C = {}for _ in range(N):s = list(input())for i in range(97,123):s1 = s[:]s1.append(chr(i))s1 = tuple(sorted(s1))C[s1] = C.get(s1,0)+1ans = -1for s in C:if C[s]==1:ans = "".join(s)breakprint(ans)