結果
問題 |
No.2715 Unique Chimatagram
|
ユーザー |
👑 |
提出日時 | 2024-04-05 22:29:35 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 249 bytes |
コンパイル時間 | 167 ms |
コンパイル使用メモリ | 82,296 KB |
実行使用メモリ | 65,732 KB |
最終ジャッジ日時 | 2024-10-01 02:41:21 |
合計ジャッジ時間 | 4,825 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 34 WA * 6 |
ソースコード
from collections import Counter N = int(input()) S = [''.join(sorted(input())) for _ in range(N)] if N == 1: print(S[0] + 'a') exit() for key, val in Counter(S).items(): if val == 1: print(key + 'a') exit() print(-1)