結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,332 KB
testcase_01 AC 45 ms
53,332 KB
testcase_02 AC 42 ms
53,332 KB
testcase_03 AC 40 ms
53,332 KB
testcase_04 AC 41 ms
53,332 KB
testcase_05 AC 41 ms
53,332 KB
testcase_06 AC 41 ms
53,332 KB
testcase_07 AC 49 ms
53,332 KB
testcase_08 AC 56 ms
63,060 KB
testcase_09 AC 56 ms
63,060 KB
testcase_10 AC 60 ms
63,060 KB
testcase_11 AC 57 ms
65,132 KB
testcase_12 AC 56 ms
63,060 KB
testcase_13 AC 55 ms
63,060 KB
testcase_14 AC 55 ms
63,060 KB
testcase_15 AC 54 ms
63,060 KB
testcase_16 AC 55 ms
63,060 KB
testcase_17 AC 57 ms
63,060 KB
testcase_18 AC 55 ms
65,132 KB
testcase_19 AC 56 ms
65,132 KB
testcase_20 AC 56 ms
65,132 KB
testcase_21 AC 56 ms
65,132 KB
testcase_22 AC 58 ms
65,132 KB
testcase_23 AC 57 ms
65,132 KB
testcase_24 AC 55 ms
65,132 KB
testcase_25 AC 81 ms
65,132 KB
testcase_26 AC 60 ms
65,132 KB
testcase_27 AC 55 ms
65,132 KB
testcase_28 AC 55 ms
63,060 KB
testcase_29 AC 55 ms
63,060 KB
testcase_30 AC 53 ms
63,060 KB
testcase_31 AC 55 ms
63,060 KB
testcase_32 AC 54 ms
63,060 KB
testcase_33 AC 41 ms
53,332 KB
testcase_34 AC 40 ms
53,332 KB
testcase_35 AC 41 ms
53,332 KB
testcase_36 AC 41 ms
53,332 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 56 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] + 'z')
    exit()

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

print(-1)
0