結果
| 問題 |
No.2737 Compound Word
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-21 11:08:27 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 2,000 ms |
| コード長 | 195 bytes |
| コンパイル時間 | 207 ms |
| コンパイル使用メモリ | 82,196 KB |
| 実行使用メモリ | 58,880 KB |
| 最終ジャッジ日時 | 2024-10-13 09:49:31 |
| 合計ジャッジ時間 | 2,249 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 27 |
ソースコード
N = int(input())
s = set([])
string = [input() for i in range(N)]
for i in range(N):
for j in range(i+1,N):
s.add(string[i]+string[j])
s.add(string[j]+string[i])
print(len(s))