結果
| 問題 |
No.2737 Compound Word
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-22 11:54:01 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 2,000 ms |
| コード長 | 234 bytes |
| コンパイル時間 | 94 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,136 KB |
| 最終ジャッジ日時 | 2024-10-14 11:15:09 |
| 合計ジャッジ時間 | 1,974 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 27 |
ソースコード
n = int(input())
s = []
for _ in range(n):
s.append(input())
s = list(set(s))
sl = len(s)
d = []
for i in range(sl):
for j in range(sl):
if i == j:
continue
d.append(s[i]+s[j])
print(len(set(d)))