結果
| 問題 | No.2737 Compound Word |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-20 12:21:05 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 323 bytes |
| コンパイル時間 | 1,849 ms |
| コンパイル使用メモリ | 171,524 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-12 07:40:58 |
| 合計ジャッジ時間 | 3,145 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 27 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin>>N;
set<string> S;
string a[N];
for(int i =0;i<N;i++){
cin >> a[i];
}
for(int i= 0; i<N;i++){
for(int j=0; j<<N;j++){
if(i==j)break;
string T = a[i] + a[j];
S.insert(T);
}
}
cout << S.size() <<endl;
return 0;
}