Submission #1274230


Source Code Expand

// clang-format off

#include <bits/stdc++.h>

#define int long long int
#define main signed main()
#define bye return 0
#define loop(i, a, n) for (int i = (a); i < (n); i++)
#define rep(i, n) loop(i, 0, n)
#define each(p, v) for (auto p = (v).begin(); p != (v).end(); p++)
#define all(v) (v).begin(), (v).end()
#define prec(n) fixed << setprecision(n)
#define dump(x) cerr << "(L" << __LINE__ << ") " << #x << " = " << (x) << endl
#define clr(x, a) memset(x, a, sizeof(x))

#define sum(v) accumulate(all(v), 0)
#define stlice(from, to) substr(from, (to) - (from) + 1)
#define odd(n) ((n) % 2)
#define even(n) (!odd(n))

#define INF 1000000000
#define MOD 1000000007
#define PI acos(-1)

#define pb push_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define vi vector<int>
#define vb vector<bool>
#define vc vector<char>
#define vs vector<string>

using namespace std;

// clang-format on

main {
  int n;
  cin >> n;
  vs s(n);
  rep(i, n) cin >> s[i];
  vs t;
  rep(i, n) rep(j, n) if (i != j) t.pb(s[i] + s[j]);
  sort(all(t));
  cout << t[0] << endl;
  bye;
}

Submission Info

Submission Time
Task B - パスワード
User AyaMorisawa
Language C++14 (GCC 5.4.1)
Score 100
Code Size 1150 Byte
Status AC
Exec Time 2 ms
Memory 640 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 24
Set Name Test Cases
All input_0.txt, input_1.txt, input_10.txt, input_11.txt, input_12.txt, input_13.txt, input_14.txt, input_15.txt, input_16.txt, input_17.txt, input_18.txt, input_19.txt, input_2.txt, input_20.txt, input_21.txt, input_22.txt, input_23.txt, input_3.txt, input_4.txt, input_5.txt, input_6.txt, input_7.txt, input_8.txt, input_9.txt
Case Name Status Exec Time Memory
input_0.txt AC 1 ms 256 KB
input_1.txt AC 1 ms 256 KB
input_10.txt AC 2 ms 640 KB
input_11.txt AC 2 ms 512 KB
input_12.txt AC 2 ms 640 KB
input_13.txt AC 1 ms 256 KB
input_14.txt AC 1 ms 256 KB
input_15.txt AC 1 ms 256 KB
input_16.txt AC 1 ms 256 KB
input_17.txt AC 2 ms 640 KB
input_18.txt AC 2 ms 640 KB
input_19.txt AC 2 ms 640 KB
input_2.txt AC 1 ms 256 KB
input_20.txt AC 2 ms 384 KB
input_21.txt AC 1 ms 256 KB
input_22.txt AC 1 ms 256 KB
input_23.txt AC 1 ms 256 KB
input_3.txt AC 1 ms 256 KB
input_4.txt AC 1 ms 256 KB
input_5.txt AC 1 ms 256 KB
input_6.txt AC 1 ms 256 KB
input_7.txt AC 1 ms 256 KB
input_8.txt AC 1 ms 256 KB
input_9.txt AC 1 ms 256 KB