結果

問題 No.2715 Unique Chimatagram
ユーザー loop0919loop0919
提出日時 2024-04-05 22:29:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 249 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 65,132 KB
最終ジャッジ日時 2024-04-05 22:29:40
合計ジャッジ時間 4,579 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
53,332 KB
testcase_01 AC 42 ms
53,332 KB
testcase_02 AC 40 ms
53,332 KB
testcase_03 WA -
testcase_04 AC 40 ms
53,332 KB
testcase_05 AC 39 ms
53,332 KB
testcase_06 AC 40 ms
53,332 KB
testcase_07 AC 40 ms
53,332 KB
testcase_08 AC 54 ms
63,060 KB
testcase_09 WA -
testcase_10 AC 54 ms
63,060 KB
testcase_11 AC 55 ms
65,132 KB
testcase_12 AC 54 ms
63,060 KB
testcase_13 AC 56 ms
63,060 KB
testcase_14 AC 54 ms
63,060 KB
testcase_15 AC 54 ms
63,060 KB
testcase_16 AC 54 ms
63,060 KB
testcase_17 AC 55 ms
63,060 KB
testcase_18 AC 56 ms
65,132 KB
testcase_19 AC 54 ms
65,132 KB
testcase_20 AC 56 ms
65,132 KB
testcase_21 AC 56 ms
65,132 KB
testcase_22 AC 55 ms
65,132 KB
testcase_23 AC 57 ms
65,132 KB
testcase_24 AC 55 ms
65,132 KB
testcase_25 AC 56 ms
65,132 KB
testcase_26 AC 55 ms
65,132 KB
testcase_27 AC 55 ms
65,132 KB
testcase_28 AC 55 ms
63,060 KB
testcase_29 AC 54 ms
63,060 KB
testcase_30 AC 54 ms
63,060 KB
testcase_31 AC 56 ms
63,060 KB
testcase_32 AC 55 ms
63,060 KB
testcase_33 AC 40 ms
53,332 KB
testcase_34 AC 40 ms
53,332 KB
testcase_35 AC 40 ms
53,332 KB
testcase_36 AC 40 ms
53,332 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 55 ms
65,132 KB
testcase_42 AC 55 ms
65,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0