結果

問題 No.2715 Unique Chimatagram
ユーザー akasia_midoriakasia_midori
提出日時 2024-04-06 03:11:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 939 bytes
コンパイル時間 390 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 76,368 KB
最終ジャッジ日時 2024-04-06 03:12:55
合計ジャッジ時間 6,531 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
55,612 KB
testcase_01 WA -
testcase_02 AC 42 ms
55,612 KB
testcase_03 AC 42 ms
55,612 KB
testcase_04 AC 42 ms
55,612 KB
testcase_05 AC 45 ms
55,612 KB
testcase_06 AC 43 ms
55,612 KB
testcase_07 AC 43 ms
55,612 KB
testcase_08 AC 66 ms
68,636 KB
testcase_09 AC 69 ms
70,728 KB
testcase_10 AC 73 ms
72,792 KB
testcase_11 AC 73 ms
72,792 KB
testcase_12 AC 73 ms
72,796 KB
testcase_13 AC 78 ms
72,792 KB
testcase_14 WA -
testcase_15 AC 77 ms
72,792 KB
testcase_16 AC 66 ms
68,636 KB
testcase_17 AC 65 ms
68,604 KB
testcase_18 AC 89 ms
76,240 KB
testcase_19 AC 86 ms
76,240 KB
testcase_20 AC 86 ms
76,240 KB
testcase_21 AC 86 ms
76,240 KB
testcase_22 AC 86 ms
76,240 KB
testcase_23 AC 89 ms
76,236 KB
testcase_24 AC 87 ms
76,240 KB
testcase_25 AC 88 ms
76,236 KB
testcase_26 AC 85 ms
76,368 KB
testcase_27 AC 84 ms
76,252 KB
testcase_28 AC 68 ms
70,724 KB
testcase_29 WA -
testcase_30 AC 72 ms
72,800 KB
testcase_31 AC 66 ms
70,720 KB
testcase_32 AC 69 ms
70,724 KB
testcase_33 AC 42 ms
55,612 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 48 ms
55,612 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def oi(): return int(input())
def os(): return input().rstrip()
def mi(): return list(map(int, input().split()))

# import sys
# input = sys.stdin.readline
# import sys
# sys.setrecursionlimit(10**8)
# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
from collections import defaultdict
input_count = 0

N = oi()
dicts = {i:defaultdict(int) for i in range(1,12)}
for _ in range(N):
    S = "".join(sorted(list(os())))
    dicts[len(S)][S] += 1
alpha = [chr(ord("a")+i) for i in range(26)]
flg = False
for i in range(1, 11):
    for k in dicts[i].keys():
        for a in alpha:
            temp = "".join(sorted(list(k+a)))
            count = 0
            for j in range(len(temp)):
                temp2 = temp[:j] + temp[j+1:]
                if temp2 in dicts[i]:
                    count += dicts[i][temp2]
            if count == 1:
                flg = True
                break
    if flg:
        break
print(k+a)
0