結果
| 問題 |
No.2715 Unique Chimatagram
|
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2024-04-06 15:30:04 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 102 ms / 2,000 ms |
| コード長 | 267 bytes |
| コンパイル時間 | 378 ms |
| コンパイル使用メモリ | 82,324 KB |
| 実行使用メモリ | 84,096 KB |
| 最終ジャッジ日時 | 2024-10-01 03:52:27 |
| 合計ジャッジ時間 | 5,496 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 40 |
ソースコード
import collections
import string
N = int(input())
C = collections.Counter()
for _ in range(N):
S = input()
for c in string.ascii_lowercase:
C[''.join(sorted(list(S+c)))]+=1
for k,v in C.items():
if v==1:
print(k)
exit()
print(-1)
H20