結果
問題 | No.2715 Unique Chimatagram |
ユーザー |
|
提出日時 | 2024-06-15 00:16:40 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 102 ms / 2,000 ms |
コード長 | 282 bytes |
コンパイル時間 | 637 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 84,992 KB |
最終ジャッジ日時 | 2024-06-15 00:16:48 |
合計ジャッジ時間 | 6,661 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 40 |
ソースコード
from collections import Counterfrom string import ascii_lowercasecnt = Counter()for _ in range(int(input())):S = input()for c in ascii_lowercase:T = "".join(sorted(S + c))cnt[T] += 1for T, n in cnt.items():if n == 1:print(T)breakelse:print(-1)