結果

問題 No.1994 Confusing Name
ユーザー 👑 H20H20
提出日時 2022-07-01 21:54:20
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 380 bytes
コンパイル時間 1,706 ms
コンパイル使用メモリ 86,856 KB
実行使用メモリ 86,528 KB
最終ジャッジ日時 2023-08-17 09:27:21
合計ジャッジ時間 5,465 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,436 KB
testcase_01 AC 76 ms
71,544 KB
testcase_02 AC 74 ms
71,172 KB
testcase_03 AC 73 ms
71,316 KB
testcase_04 AC 71 ms
71,392 KB
testcase_05 AC 93 ms
76,528 KB
testcase_06 AC 108 ms
77,012 KB
testcase_07 AC 87 ms
76,564 KB
testcase_08 AC 102 ms
77,224 KB
testcase_09 AC 109 ms
77,216 KB
testcase_10 AC 97 ms
76,520 KB
testcase_11 AC 94 ms
76,420 KB
testcase_12 TLE -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = []
for _ in range(N):
    S.append(input())
ANS = [0]*N
for i in range(N):
    for j in range(i+1,N):
        if len(S[i])==len(S[j]):
            v = 0
            for k in range(len(S[i])):
                if S[i][k]!=S[j][k]:
                    v+=1
            if v==1:
                ANS[i]+=1
                ANS[j]+=1
for ans in ANS:
    print(ans)

0