結果

問題 No.2715 Unique Chimatagram
ユーザー 👑 loop0919
提出日時 2024-04-05 22:36:12
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 249 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 82,552 KB
実行使用メモリ 64,128 KB
最終ジャッジ日時 2024-10-01 02:46:04
合計ジャッジ時間 4,288 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 36 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

N = int(input())
S = [''.join(sorted(input())) for _ in range(N)]

if N == 1:
    print(S[0] + 'z')
    exit()

for key, val in Counter(S).items():
    if val == 1:
        print(key + 'z')
        exit()

print(-1)
0