結果

問題 No.2737 Compound Word
ユーザー 𖧱𖦸𖥩𖥣𖥩𖥣𖧱𖦸𖥩𖥣𖥩𖥣
提出日時 2024-04-30 11:52:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 321 ms
コンパイル使用メモリ 82,420 KB
実行使用メモリ 60,588 KB
最終ジャッジ日時 2024-04-30 11:52:43
合計ジャッジ時間 2,009 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,628 KB
testcase_01 AC 33 ms
52,268 KB
testcase_02 AC 33 ms
52,756 KB
testcase_03 AC 33 ms
52,252 KB
testcase_04 AC 32 ms
53,224 KB
testcase_05 AC 34 ms
52,504 KB
testcase_06 AC 34 ms
53,152 KB
testcase_07 AC 33 ms
52,328 KB
testcase_08 AC 35 ms
53,068 KB
testcase_09 AC 44 ms
58,804 KB
testcase_10 AC 42 ms
59,028 KB
testcase_11 AC 33 ms
53,212 KB
testcase_12 AC 36 ms
52,480 KB
testcase_13 AC 33 ms
52,064 KB
testcase_14 AC 33 ms
52,056 KB
testcase_15 AC 33 ms
52,772 KB
testcase_16 AC 34 ms
53,696 KB
testcase_17 AC 37 ms
58,476 KB
testcase_18 AC 36 ms
52,404 KB
testcase_19 AC 33 ms
52,404 KB
testcase_20 AC 38 ms
60,588 KB
testcase_21 AC 32 ms
53,756 KB
testcase_22 AC 33 ms
52,420 KB
testcase_23 AC 38 ms
53,456 KB
testcase_24 AC 33 ms
52,556 KB
testcase_25 AC 33 ms
52,004 KB
testcase_26 AC 42 ms
59,868 KB
testcase_27 AC 34 ms
53,540 KB
testcase_28 AC 54 ms
59,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ls = []
for i in range(n):
	ls.append(input())
lz = []
for i in range(n):
	for j in range(n):
		if i != j:
			w = ls[i]+ls[j]
			if w not in lz:
				lz.append(w)
print(len(lz))
0