結果
| 問題 | No.2737 Compound Word |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-20 10:53:35 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 334 bytes |
| 記録 | |
| コンパイル時間 | 560 ms |
| コンパイル使用メモリ | 102,724 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-04 14:10:38 |
| 合計ジャッジ時間 | 1,590 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 27 |
ソースコード
#include <iostream>
#include <set>
#include <vector>
using namespace std;
int main(){
int N;
cin >> N;
vector<string> V(N);
for (auto& v : V) cin >> v;
set<string> S;
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
if (i != j)
S.insert(V[i] + V[j]);
}
}
cout << S.size() << endl;
return 0;
}