結果

問題 No.1994 Confusing Name
ユーザー scrappyscrappy
提出日時 2022-07-06 15:29:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 234 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 29,828 KB
最終ジャッジ日時 2023-08-23 13:35:04
合計ジャッジ時間 9,378 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
29,496 KB
testcase_01 AC 134 ms
29,380 KB
testcase_02 AC 136 ms
29,424 KB
testcase_03 AC 135 ms
29,352 KB
testcase_04 AC 137 ms
29,452 KB
testcase_05 AC 203 ms
29,556 KB
testcase_06 AC 476 ms
29,828 KB
testcase_07 AC 157 ms
29,552 KB
testcase_08 AC 334 ms
29,604 KB
testcase_09 AC 480 ms
29,788 KB
testcase_10 AC 237 ms
29,468 KB
testcase_11 AC 204 ms
29,560 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 #

import numpy as np
N = int(input())
S = [np.array(list(input())) for i in range(N)]

for s in S:
    n = 0
    for t in S:
        if len(s) == len(t):
            if np.count_nonzero(s != t) == 1:
                n += 1
    print(n)
0