結果

問題 No.2737 Compound Word
ユーザー todosec
提出日時 2024-04-25 20:17:22
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 223 bytes
コンパイル時間 748 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-08 08:03:12
合計ジャッジ時間 2,554 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other RE * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

lst = []
n = int(input())
for i in range(0..n):
	lst[i] = input()
dic = {}
for i in range(0,n):
	for j in range(0,n):
		if i == j:
			continue
		s = lst[i] + lst[j]
		if s in dic:
			continue
		dic[s] = s
print(count(dic))
0