結果

問題 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
コンパイル時間 156 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 56,988 KB
最終ジャッジ日時 2024-06-01 11:09:24
合計ジャッジ時間 13,133 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 570 ms
49,436 KB
testcase_01 AC 577 ms
43,804 KB
testcase_02 AC 584 ms
43,928 KB
testcase_03 AC 531 ms
44,436 KB
testcase_04 AC 524 ms
44,312 KB
testcase_05 AC 586 ms
43,804 KB
testcase_06 AC 885 ms
43,932 KB
testcase_07 AC 591 ms
44,316 KB
testcase_08 AC 754 ms
44,068 KB
testcase_09 AC 925 ms
44,060 KB
testcase_10 AC 653 ms
43,936 KB
testcase_11 AC 594 ms
44,056 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