結果

問題 No.2737 Compound Word
ユーザー FogrexFogrex
提出日時 2024-04-20 10:46:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 181 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 82,392 KB
実行使用メモリ 59,604 KB
最終ジャッジ日時 2024-04-20 10:46:18
合計ジャッジ時間 2,120 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
51,820 KB
testcase_01 AC 35 ms
52,616 KB
testcase_02 AC 37 ms
53,816 KB
testcase_03 AC 36 ms
53,172 KB
testcase_04 AC 36 ms
52,336 KB
testcase_05 AC 33 ms
53,568 KB
testcase_06 AC 34 ms
52,552 KB
testcase_07 AC 34 ms
53,668 KB
testcase_08 AC 35 ms
52,900 KB
testcase_09 AC 42 ms
58,816 KB
testcase_10 AC 38 ms
59,428 KB
testcase_11 AC 33 ms
53,876 KB
testcase_12 AC 34 ms
53,212 KB
testcase_13 AC 34 ms
53,108 KB
testcase_14 AC 34 ms
52,364 KB
testcase_15 AC 34 ms
52,744 KB
testcase_16 AC 35 ms
52,740 KB
testcase_17 AC 39 ms
58,576 KB
testcase_18 AC 37 ms
52,708 KB
testcase_19 AC 32 ms
52,564 KB
testcase_20 AC 40 ms
59,104 KB
testcase_21 AC 38 ms
52,700 KB
testcase_22 AC 34 ms
52,688 KB
testcase_23 AC 34 ms
53,172 KB
testcase_24 AC 35 ms
52,876 KB
testcase_25 AC 34 ms
53,112 KB
testcase_26 AC 39 ms
58,944 KB
testcase_27 AC 35 ms
53,160 KB
testcase_28 AC 38 ms
59,604 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

ss = [input() for i in range(n)]

secs = set()

for i in range(n):
    for j in range(n):
        if i != j:
            secs.add(ss[i] + ss[j])

print(len(secs))
0