結果
| 問題 |
No.2737 Compound Word
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-02 20:02:20 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 267 bytes |
| コンパイル時間 | 2,082 ms |
| コンパイル使用メモリ | 200,892 KB |
| 最終ジャッジ日時 | 2025-02-21 10:39:41 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 27 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin>>N;
vector<string> S(N);
for(int i=0;i<N;i++)cin>>S[i];
set<string> T;
for(int i=0;i<N;i++)for(int j=0;j<N;j++)if(i!=j)T.insert(S[i]+S[j]);
cout<<T.size()<<endl;
}