結果
| 問題 |
No.2737 Compound Word
|
| コンテスト | |
| ユーザー |
true-molecule
|
| 提出日時 | 2024-04-20 21:38:59 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 392 bytes |
| コンパイル時間 | 1,350 ms |
| コンパイル使用メモリ | 108,696 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-12 19:53:10 |
| 合計ジャッジ時間 | 2,305 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 27 |
ソースコード
#include <algorithm>
#include <iostream>
#include <set>
#include <vector>
int main() {
using namespace std;
int n;
cin >> n;
vector<string> s(n);
set<string> t;
for (auto&& i : s)
cin >> i;
for (int i = 0; i < n; ++i)
for (int j = 0; j < n; ++j)
if (i != j)
t.insert(s.at(i) + s.at(j));
cout << t.size() << '\n';
}
true-molecule