結果
問題 |
No.2737 Compound Word
|
ユーザー |
|
提出日時 | 2024-04-25 20:21:13 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 2,000 ms |
コード長 | 223 bytes |
コンパイル時間 | 207 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-08 08:08:16 |
合計ジャッジ時間 | 2,227 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 27 |
ソースコード
n = int(input()) lst = [] for i in range(0,n): lst.append(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(len(dic))