結果

問題 No.2737 Compound Word
ユーザー QroQro
提出日時 2024-04-20 11:52:32
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 1,234 bytes
コンパイル時間 2,300 ms
コンパイル使用メモリ 203,760 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-20 11:52:41
合計ジャッジ時間 6,450 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <vector>
using namespace std;
int inf=100000000;
using ll=long long;
using pint=pair<int,int>;
using pll=pair<ll,ll>;
using pque_int=priority_queue<int>;
#define rep(i,n) for (int i=0; i < (int) n; i++)
#define _GLIBCXX_DEBUG
template<typename T> inline bool chmax(T &a, T b) { return ((a < b) ? (a = b, true) : (false)); }
template<typename T> inline bool chmin(T &a, T b) { return ((a > b) ? (a = b, true) : (false)); }
int VecMax(vector<int> &v) {
    int output=-inf;
    rep(i,v.size()) chmax(output,v[i]);
    return output;
}
int VecMin(vector<ll> &v) {
    ll output=inf;
    rep(i,v.size()) chmin(output,v[i]);
    return output;
}
ll VecSum(vector<int> &v) {
    ll output=0;
    rep(i,v.size()) output+=v[i];
    return output;
}
ll pow(ll a,ll n) {
    ll output=1;
    while (n>0) output*=a;
    return output;
}
int dir(char c) {
    if (c=='L') return 3;
    else if (c=='R') return 1;
    else if (c=='U') return 2;
    else return 0;
}

int main() {
    int N;
    cin >> N;
    vector<string> s;
    rep(i,N) cin >> s[i];

    set<string> t;
    rep(i,N) {
        rep(j,N) {
            string ns=s[i]+s[j];
            t.insert(ns);
        }
    }
    cout << t.size() << endl;
}
0