QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#869798 | #8615. Equal Strings | ucup-team087# | AC ✓ | 43ms | 3712kb | C++23 | 10.8kb | 2025-01-25 13:29:01 | 2025-01-25 13:29:02 |
Judging History
answer
#line 1 "library/my_template.hpp"
#if defined(LOCAL)
#include <my_template_compiled.hpp>
#else
// https://codeforces.com/blog/entry/96344
#pragma GCC optimize("Ofast,unroll-loops")
// いまの CF だとこれ入れると動かない?
// #pragma GCC target("avx2,popcnt")
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using u8 = uint8_t;
using u16 = uint16_t;
using u32 = uint32_t;
using u64 = uint64_t;
using i128 = __int128;
using u128 = unsigned __int128;
using f128 = __float128;
template <class T>
constexpr T infty = 0;
template <>
constexpr int infty<int> = 1'010'000'000;
template <>
constexpr ll infty<ll> = 2'020'000'000'000'000'000;
template <>
constexpr u32 infty<u32> = infty<int>;
template <>
constexpr u64 infty<u64> = infty<ll>;
template <>
constexpr i128 infty<i128> = i128(infty<ll>) * 2'000'000'000'000'000'000;
template <>
constexpr double infty<double> = infty<ll>;
template <>
constexpr long double infty<long double> = infty<ll>;
using pi = pair<ll, ll>;
using vi = vector<ll>;
template <class T>
using vc = vector<T>;
template <class T>
using vvc = vector<vc<T>>;
template <class T>
using vvvc = vector<vvc<T>>;
template <class T>
using vvvvc = vector<vvvc<T>>;
template <class T>
using vvvvvc = vector<vvvvc<T>>;
template <class T>
using pq = priority_queue<T>;
template <class T>
using pqg = priority_queue<T, vector<T>, greater<T>>;
#define vv(type, name, h, ...) vector<vector<type>> name(h, vector<type>(__VA_ARGS__))
#define vvv(type, name, h, w, ...) vector<vector<vector<type>>> name(h, vector<vector<type>>(w, vector<type>(__VA_ARGS__)))
#define vvvv(type, name, a, b, c, ...) \
vector<vector<vector<vector<type>>>> name(a, vector<vector<vector<type>>>(b, vector<vector<type>>(c, vector<type>(__VA_ARGS__))))
// https://trap.jp/post/1224/
#define FOR1(a) for (ll _ = 0; _ < ll(a); ++_)
#define FOR2(i, a) for (ll i = 0; i < ll(a); ++i)
#define FOR3(i, a, b) for (ll i = a; i < ll(b); ++i)
#define FOR4(i, a, b, c) for (ll i = a; i < ll(b); i += (c))
#define FOR1_R(a) for (ll i = (a)-1; i >= ll(0); --i)
#define FOR2_R(i, a) for (ll i = (a)-1; i >= ll(0); --i)
#define FOR3_R(i, a, b) for (ll i = (b)-1; i >= ll(a); --i)
#define overload4(a, b, c, d, e, ...) e
#define overload3(a, b, c, d, ...) d
#define FOR(...) overload4(__VA_ARGS__, FOR4, FOR3, FOR2, FOR1)(__VA_ARGS__)
#define FOR_R(...) overload3(__VA_ARGS__, FOR3_R, FOR2_R, FOR1_R)(__VA_ARGS__)
#define all(x) x.begin(), x.end()
#define len(x) ll(x.size())
#define elif else if
#define eb emplace_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define stoi stoll
int popcnt(int x) { return __builtin_popcount(x); }
int popcnt(u32 x) { return __builtin_popcount(x); }
int popcnt(ll x) { return __builtin_popcountll(x); }
int popcnt(u64 x) { return __builtin_popcountll(x); }
int popcnt_sgn(int x) { return (__builtin_parity(unsigned(x)) & 1 ? -1 : 1); }
int popcnt_sgn(u32 x) { return (__builtin_parity(x) & 1 ? -1 : 1); }
int popcnt_sgn(ll x) { return (__builtin_parityll(x) & 1 ? -1 : 1); }
int popcnt_sgn(u64 x) { return (__builtin_parityll(x) & 1 ? -1 : 1); }
// (0, 1, 2, 3, 4) -> (-1, 0, 1, 1, 2)
int topbit(int x) { return (x == 0 ? -1 : 31 - __builtin_clz(x)); }
int topbit(u32 x) { return (x == 0 ? -1 : 31 - __builtin_clz(x)); }
int topbit(ll x) { return (x == 0 ? -1 : 63 - __builtin_clzll(x)); }
int topbit(u64 x) { return (x == 0 ? -1 : 63 - __builtin_clzll(x)); }
// (0, 1, 2, 3, 4) -> (-1, 0, 1, 0, 2)
int lowbit(int x) { return (x == 0 ? -1 : __builtin_ctz(x)); }
int lowbit(u32 x) { return (x == 0 ? -1 : __builtin_ctz(x)); }
int lowbit(ll x) { return (x == 0 ? -1 : __builtin_ctzll(x)); }
int lowbit(u64 x) { return (x == 0 ? -1 : __builtin_ctzll(x)); }
template <typename T>
T kth_bit(int k) {
return T(1) << k;
}
template <typename T>
bool has_kth_bit(T x, int k) {
return x >> k & 1;
}
template <typename UINT>
struct all_bit {
struct iter {
UINT s;
iter(UINT s) : s(s) {}
int operator*() const { return lowbit(s); }
iter &operator++() {
s &= s - 1;
return *this;
}
bool operator!=(const iter) const { return s != 0; }
};
UINT s;
all_bit(UINT s) : s(s) {}
iter begin() const { return iter(s); }
iter end() const { return iter(0); }
};
template <typename UINT>
struct all_subset {
static_assert(is_unsigned<UINT>::value);
struct iter {
UINT s, t;
bool ed;
iter(UINT s) : s(s), t(s), ed(0) {}
int operator*() const { return s ^ t; }
iter &operator++() {
(t == 0 ? ed = 1 : t = (t - 1) & s);
return *this;
}
bool operator!=(const iter) const { return !ed; }
};
UINT s;
all_subset(UINT s) : s(s) {}
iter begin() const { return iter(s); }
iter end() const { return iter(0); }
};
template <typename T>
T floor(T a, T b) {
return a / b - (a % b && (a ^ b) < 0);
}
template <typename T>
T ceil(T x, T y) {
return floor(x + y - 1, y);
}
template <typename T>
T bmod(T x, T y) {
return x - y * floor(x, y);
}
template <typename T>
pair<T, T> divmod(T x, T y) {
T q = floor(x, y);
return {q, x - q * y};
}
template <typename T, typename U>
T SUM(const vector<U> &A) {
T sm = 0;
for (auto &&a: A) sm += a;
return sm;
}
#define MIN(v) *min_element(all(v))
#define MAX(v) *max_element(all(v))
#define LB(c, x) distance((c).begin(), lower_bound(all(c), (x)))
#define UB(c, x) distance((c).begin(), upper_bound(all(c), (x)))
#define UNIQUE(x) sort(all(x)), x.erase(unique(all(x)), x.end()), x.shrink_to_fit()
template <typename T>
T POP(deque<T> &que) {
T a = que.front();
que.pop_front();
return a;
}
template <typename T>
T POP(pq<T> &que) {
T a = que.top();
que.pop();
return a;
}
template <typename T>
T POP(pqg<T> &que) {
T a = que.top();
que.pop();
return a;
}
template <typename T>
T POP(vc<T> &que) {
T a = que.back();
que.pop_back();
return a;
}
template <typename F>
ll binary_search(F check, ll ok, ll ng, bool check_ok = true) {
if (check_ok) assert(check(ok));
while (abs(ok - ng) > 1) {
auto x = (ng + ok) / 2;
(check(x) ? ok : ng) = x;
}
return ok;
}
template <typename F>
double binary_search_real(F check, double ok, double ng, int iter = 100) {
FOR(iter) {
double x = (ok + ng) / 2;
(check(x) ? ok : ng) = x;
}
return (ok + ng) / 2;
}
template <class T, class S>
inline bool chmax(T &a, const S &b) {
return (a < b ? a = b, 1 : 0);
}
template <class T, class S>
inline bool chmin(T &a, const S &b) {
return (a > b ? a = b, 1 : 0);
}
// ? は -1
vc<int> s_to_vi(const string &S, char first_char) {
vc<int> A(S.size());
FOR(i, S.size()) { A[i] = (S[i] != '?' ? S[i] - first_char : -1); }
return A;
}
template <typename T, typename U>
vector<T> cumsum(vector<U> &A, int off = 1) {
int N = A.size();
vector<T> B(N + 1);
FOR(i, N) { B[i + 1] = B[i] + A[i]; }
if (off == 0) B.erase(B.begin());
return B;
}
// stable sort
template <typename T>
vector<int> argsort(const vector<T> &A) {
vector<int> ids(len(A));
iota(all(ids), 0);
sort(all(ids), [&](int i, int j) { return (A[i] == A[j] ? i < j : A[i] < A[j]); });
return ids;
}
// A[I[0]], A[I[1]], ...
template <typename T>
vc<T> rearrange(const vc<T> &A, const vc<int> &I) {
vc<T> B(len(I));
FOR(i, len(I)) B[i] = A[I[i]];
return B;
}
template <typename T, typename... Vectors>
void concat(vc<T> &first, const Vectors &... others) {
vc<T> &res = first;
(res.insert(res.end(), others.begin(), others.end()), ...);
}
#endif
#line 1 "library/other/io2.hpp"
#define INT(...) \
int __VA_ARGS__; \
IN(__VA_ARGS__)
#define LL(...) \
ll __VA_ARGS__; \
IN(__VA_ARGS__)
#define STR(...) \
string __VA_ARGS__; \
IN(__VA_ARGS__)
#define CHR(...) \
char __VA_ARGS__; \
IN(__VA_ARGS__)
#define DBL(...) \
long double __VA_ARGS__; \
IN(__VA_ARGS__)
#define VEC(type, name, size) \
vector<type> name(size); \
read(name)
#define VV(type, name, h, w) \
vector<vector<type>> name(h, vector<type>(w)); \
read(name)
void read(int &a) { cin >> a; }
void read(long long &a) { cin >> a; }
void read(char &a) { cin >> a; }
void read(double &a) { cin >> a; }
void read(long double &a) { cin >> a; }
void read(string &a) { cin >> a; }
template <class T, class S>
void read(pair<T, S> &p) {
read(p.first), read(p.second);
}
template <class T>
void read(vector<T> &a) {
for (auto &i: a) read(i);
}
template <class T>
void read(T &a) {
cin >> a;
}
void IN() {}
template <class Head, class... Tail>
void IN(Head &head, Tail &... tail) {
read(head);
IN(tail...);
}
template <typename T, typename U>
ostream &operator<<(ostream &os, const pair<T, U> &A) {
os << A.fi << " " << A.se;
return os;
}
template <typename T>
ostream &operator<<(ostream &os, const vector<T> &A) {
for (size_t i = 0; i < A.size(); i++) {
if (i) os << " ";
os << A[i];
}
return os;
}
// chatgpt helped me
class CoutInitializer {
public:
CoutInitializer() { std::cout << std::fixed << std::setprecision(15); }
};
static CoutInitializer cout_initializer;
void print() {
cout << "\n";
cout.flush();
}
template <class Head, class... Tail>
void print(Head &&head, Tail &&... tail) {
cout << head;
if (sizeof...(Tail)) cout << " ";
print(forward<Tail>(tail)...);
}
void YES(bool t = 1) { print(t ? "YES" : "NO"); }
void NO(bool t = 1) { YES(!t); }
void Yes(bool t = 1) { print(t ? "Yes" : "No"); }
void No(bool t = 1) { Yes(!t); }
void yes(bool t = 1) { print(t ? "yes" : "no"); }
void no(bool t = 1) { yes(!t); }
#line 3 "main.cpp"
#line 2 "library/random/base.hpp"
u64 RNG_64() {
static u64 x_ = u64(chrono::duration_cast<chrono::nanoseconds>(chrono::high_resolution_clock::now().time_since_epoch()).count()) * 10150724397891781847ULL;
x_ ^= x_ << 7;
return x_ ^= x_ >> 9;
}
u64 RNG(u64 lim) { return RNG_64() % lim; }
ll RNG(ll l, ll r) { return l + RNG_64() % (r - l); }
#line 5 "main.cpp"
void solve() {
LL(N);
#ifdef LOCAL
vi F(N);
FOR(i, N) F[i] = RNG(0, 1LL << 50);
while (1) {
int a = RNG(0, N);
int b = RNG(0, N);
if (a == b) continue;
F[a] = F[b];
break;
}
#endif
auto ask = [&](int i, int j) -> int {
assert(i != j);
#ifdef LOCAL
return popcnt(F[i] ^ F[j]);
#endif
print(1 + i, 1 + j);
INT(x);
return x;
};
vvc<int> A(N);
FOR(i, N) {
FOR(j, 23) {
if (i == j) {
A[i].eb(0);
continue;
}
if (j >= N) continue;
int x = ask(i, j);
if (x == 0) return;
A[i].eb(x);
}
}
FOR(j, N) FOR(i, j) {
if (A[i] != A[j]) continue;
int x = ask(i, j);
if (x == 0) return;
}
assert(0);
}
signed main() { solve(); }
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3584kb
input:
4 21 24 21 21 23 0
output:
1 2 1 3 1 4 2 1 2 3 2 4
result:
ok Found equal strings: 2, 4
Test #2:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
4 28 0
output:
1 2 1 3
result:
ok Found equal strings: 1, 3
Test #3:
score: 0
Accepted
time: 1ms
memory: 3584kb
input:
10 23 24 24 21 25 29 25 24 28 23 29 19 26 26 18 30 29 21 24 29 26 25 29 27 27 0
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9
result:
ok Found equal strings: 3, 9
Test #4:
score: 0
Accepted
time: 4ms
memory: 3584kb
input:
100 23 33 22 31 21 20 29 18 21 34 31 24 20 25 26 19 29 31 28 20 25 29 23 26 25 26 24 23 20 23 24 23 26 23 25 26 25 22 26 28 25 33 28 28 33 26 25 20 34 25 22 31 36 19 24 25 27 26 21 28 22 22 25 25 30 28 22 25 25 33 21 26 27 22 23 24 31 22 20 23 26 31 31 27 30 28 23 25 31 26 20 33 32 25 20 29 30 23 18...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 62, 100
Test #5:
score: 0
Accepted
time: 11ms
memory: 3584kb
input:
500 27 26 25 25 26 30 21 26 29 24 22 25 26 25 26 22 25 19 23 23 26 23 27 27 22 22 23 27 26 27 30 31 23 26 23 22 27 29 28 20 22 24 27 28 26 27 23 29 22 26 23 28 23 24 28 27 26 27 28 22 21 27 29 23 26 27 25 22 23 20 27 25 26 23 24 17 23 20 27 28 21 31 20 30 26 22 27 22 25 22 29 20 29 23 28 23 30 23 23...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 100, 334
Test #6:
score: 0
Accepted
time: 32ms
memory: 3712kb
input:
750 25 27 27 23 28 23 18 30 25 23 28 27 23 24 26 24 24 22 23 27 22 23 25 30 26 24 27 20 31 25 18 24 31 26 24 23 25 25 23 27 22 24 23 24 27 30 28 20 23 24 23 33 20 24 25 24 26 19 21 19 25 21 30 26 25 28 27 26 28 28 25 28 21 29 30 24 19 28 24 21 25 25 21 23 24 24 25 26 23 24 20 28 23 30 25 31 18 20 27...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 130, 698
Test #7:
score: 0
Accepted
time: 32ms
memory: 3712kb
input:
999 25 26 22 24 27 23 26 33 23 26 26 31 24 27 24 27 25 26 26 24 32 23 25 17 13 23 28 26 29 20 26 23 29 28 25 22 25 30 22 29 23 29 23 24 26 17 22 24 29 25 30 19 29 28 28 21 24 29 24 25 27 24 20 30 22 29 22 13 22 16 27 25 28 29 29 28 22 25 26 25 26 25 25 28 26 28 24 19 24 23 24 16 23 23 24 29 29 22 20...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 205, 281
Test #8:
score: 0
Accepted
time: 31ms
memory: 3712kb
input:
1000 21 18 24 18 28 19 30 28 26 27 30 21 31 18 29 23 26 24 29 28 31 24 21 25 21 25 23 24 25 29 29 32 27 28 28 27 26 26 29 25 28 27 20 23 18 25 22 28 24 21 26 28 28 25 28 25 27 24 23 27 20 22 27 34 27 24 24 21 22 30 24 25 22 28 30 29 30 27 31 22 23 29 32 24 35 24 27 28 18 25 28 30 26 23 32 24 24 29 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 211, 327
Test #9:
score: 0
Accepted
time: 25ms
memory: 3712kb
input:
1000 26 31 25 28 25 28 27 23 19 28 23 17 31 26 23 23 17 20 27 25 25 20 26 31 19 26 23 24 21 23 25 26 25 23 27 24 23 27 31 28 27 25 29 28 31 31 30 33 24 23 26 26 26 19 28 26 26 19 32 32 20 27 26 26 16 31 25 19 30 25 24 21 22 24 22 25 28 24 26 31 24 26 20 31 20 28 22 27 28 26 33 25 27 26 23 23 27 28 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 220, 448
Test #10:
score: 0
Accepted
time: 41ms
memory: 3712kb
input:
1000 25 23 22 30 24 33 26 28 27 24 27 23 35 24 24 29 23 29 28 22 30 25 25 26 29 23 27 28 23 21 26 19 28 30 24 25 23 26 24 24 19 27 27 20 23 26 21 27 21 20 23 29 22 19 26 20 28 27 27 24 26 20 21 19 25 24 22 29 21 30 24 27 22 24 33 26 27 15 29 20 24 21 25 31 24 28 22 23 30 23 27 30 24 25 26 22 19 22 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 279, 970
Test #11:
score: 0
Accepted
time: 31ms
memory: 3712kb
input:
1000 24 28 22 30 21 22 27 26 25 24 21 27 27 23 26 29 26 22 32 26 24 31 24 24 24 26 23 24 23 20 25 26 29 29 21 29 26 23 26 22 26 22 28 25 28 24 28 22 25 28 17 26 23 28 33 25 27 21 24 37 30 30 26 20 26 25 22 24 28 30 23 30 29 22 29 24 23 27 19 29 22 19 26 28 26 22 30 23 30 26 22 30 23 18 21 30 19 22 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 619, 843
Test #12:
score: 0
Accepted
time: 33ms
memory: 3712kb
input:
1000 25 25 25 25 33 24 26 27 27 25 23 31 24 22 24 23 22 25 26 24 15 31 25 26 26 28 24 25 27 28 24 30 20 26 27 33 23 22 23 22 25 19 24 28 25 26 34 22 26 27 25 20 26 28 26 32 25 27 27 24 27 22 25 25 22 26 25 26 34 30 26 23 21 26 24 30 26 22 19 21 25 34 29 26 25 29 28 12 25 28 22 30 18 27 25 24 26 26 3...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 678, 717
Test #13:
score: 0
Accepted
time: 27ms
memory: 3584kb
input:
1000 27 25 26 23 18 23 23 29 24 21 24 31 30 27 29 25 33 23 21 29 25 24 27 26 23 28 25 30 22 26 17 28 25 22 29 26 14 26 30 24 24 26 24 27 25 26 25 28 27 28 26 30 27 26 27 22 25 22 22 30 26 24 24 30 26 25 26 23 25 21 22 21 29 25 28 27 26 25 30 25 23 25 25 23 23 25 21 30 23 28 28 21 25 24 20 28 25 30 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 239, 737
Test #14:
score: 0
Accepted
time: 34ms
memory: 3712kb
input:
1000 24 24 31 23 23 28 29 26 26 23 26 22 28 33 26 23 25 18 29 20 19 25 24 28 23 23 25 28 21 22 18 25 24 22 30 25 24 27 31 22 23 24 21 33 24 28 29 23 25 24 29 20 30 19 24 22 32 31 24 21 23 22 29 22 27 23 31 23 29 28 30 29 20 23 17 30 21 25 25 26 21 32 28 33 24 27 24 24 23 23 23 28 22 29 26 25 25 28 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 112, 796
Test #15:
score: 0
Accepted
time: 30ms
memory: 3712kb
input:
1000 24 31 28 25 27 26 25 23 28 23 30 29 26 24 28 28 24 23 20 27 28 26 24 23 30 27 21 26 23 19 20 25 20 23 28 16 20 22 26 21 24 31 26 26 31 23 29 22 26 25 24 26 23 28 21 26 23 23 21 23 25 30 21 30 19 23 28 30 29 25 25 24 23 25 24 31 28 27 24 28 20 26 24 23 24 21 26 20 25 27 22 25 24 25 28 24 27 32 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 634, 855
Test #16:
score: 0
Accepted
time: 36ms
memory: 3712kb
input:
1000 25 25 26 24 27 22 25 27 24 24 25 28 20 30 24 25 30 27 21 29 24 26 25 22 19 17 26 23 16 24 27 21 22 25 25 29 23 34 29 24 26 28 25 25 25 22 23 31 22 23 24 30 23 27 12 23 23 29 31 24 27 26 26 24 21 25 26 19 23 28 25 30 23 29 32 24 21 26 22 20 26 23 26 25 27 23 30 24 24 17 31 28 25 24 25 19 26 24 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 196, 508
Test #17:
score: 0
Accepted
time: 41ms
memory: 3712kb
input:
1000 26 23 24 19 31 25 29 24 29 26 30 23 23 28 27 24 30 21 27 27 25 18 26 19 24 25 25 25 23 22 23 32 22 25 25 28 19 20 20 27 25 33 23 28 23 19 31 24 30 28 22 23 24 25 19 28 22 23 22 25 29 22 24 28 24 25 24 24 31 25 25 23 31 22 25 30 26 27 25 28 27 26 22 31 23 27 27 26 19 25 24 25 26 26 22 21 32 21 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 30, 255
Test #18:
score: 0
Accepted
time: 35ms
memory: 3584kb
input:
1000 20 29 27 30 22 26 28 30 25 22 24 24 22 24 25 30 24 25 23 22 22 24 20 25 25 28 22 24 26 28 29 26 24 24 24 22 31 20 24 29 31 22 24 30 29 25 22 21 29 23 27 25 28 29 27 29 25 21 24 21 29 30 26 27 17 27 27 25 22 21 23 23 25 21 20 25 27 25 27 29 16 23 27 24 22 23 23 25 30 28 21 21 26 28 30 26 23 26 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 284, 957
Test #19:
score: 0
Accepted
time: 28ms
memory: 3712kb
input:
1000 26 27 24 21 28 26 25 26 28 34 24 22 25 27 29 30 23 21 27 23 26 28 26 25 24 19 32 24 25 26 28 26 28 32 17 25 19 24 27 21 21 25 26 26 27 25 23 28 31 31 24 21 29 19 25 27 30 30 28 19 30 22 24 22 23 23 24 24 23 23 26 24 27 24 26 22 20 24 23 27 25 28 21 29 27 27 24 22 21 19 28 23 29 21 20 29 23 29 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 343, 478
Test #20:
score: 0
Accepted
time: 29ms
memory: 3712kb
input:
1000 19 26 17 23 28 33 29 28 26 30 29 30 33 24 19 28 30 25 28 24 25 27 19 23 20 26 25 22 26 27 25 23 24 21 24 23 28 25 25 28 21 27 26 32 26 23 25 29 26 23 25 26 22 30 21 24 31 26 27 26 24 23 28 28 25 23 17 20 25 24 29 28 28 31 19 23 24 21 24 17 26 29 21 30 23 27 20 28 23 26 29 24 23 28 32 23 27 17 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 352, 402
Test #21:
score: 0
Accepted
time: 24ms
memory: 3712kb
input:
1000 23 28 26 24 24 29 21 26 27 29 27 29 28 23 28 17 25 25 31 24 22 26 23 15 23 25 21 26 22 33 28 26 20 24 25 28 31 22 22 26 22 21 21 23 28 15 22 32 22 29 21 30 29 25 15 21 24 23 26 27 27 25 21 28 24 20 26 23 22 26 26 29 27 24 23 25 23 21 28 27 20 19 21 23 25 28 30 20 24 25 32 26 20 25 23 16 21 29 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 462, 874
Test #22:
score: 0
Accepted
time: 38ms
memory: 3712kb
input:
1000 27 20 28 27 32 26 27 26 26 32 29 25 27 27 19 23 27 22 25 26 27 24 27 29 23 20 21 23 26 37 25 25 30 26 24 18 26 28 26 15 32 27 30 21 20 29 28 35 30 24 31 28 24 20 21 25 27 23 23 17 23 28 29 26 25 24 28 23 28 23 24 22 29 24 22 30 21 27 31 17 25 31 23 24 25 26 19 16 27 20 35 23 25 23 20 31 29 23 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 521, 747
Test #23:
score: 0
Accepted
time: 31ms
memory: 3712kb
input:
1000 32 30 27 29 27 20 25 29 28 22 20 29 26 29 30 22 28 23 26 19 28 22 32 24 27 25 19 24 23 17 26 20 24 25 32 23 22 24 22 23 22 27 22 26 30 24 31 31 27 26 27 27 30 26 28 21 28 27 18 28 24 27 24 23 28 30 27 27 31 16 26 31 26 28 17 25 23 20 23 24 27 31 25 28 21 30 19 25 29 25 31 16 24 27 26 22 25 31 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 621, 861
Test #24:
score: 0
Accepted
time: 29ms
memory: 3712kb
input:
1000 21 25 24 21 21 25 20 21 27 29 29 30 24 23 28 27 29 20 29 32 22 24 21 18 21 22 24 28 21 20 26 26 28 21 17 22 29 24 24 27 24 27 29 31 25 18 27 22 28 18 25 18 26 28 20 19 25 30 21 26 24 27 28 19 27 29 24 21 27 21 29 31 24 29 23 29 27 24 22 17 24 27 29 22 25 24 18 26 21 22 22 21 28 26 23 20 24 26 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 143, 920
Test #25:
score: 0
Accepted
time: 32ms
memory: 3712kb
input:
1000 24 26 31 29 29 26 25 21 20 25 24 22 24 27 26 28 35 26 26 28 22 27 24 18 27 27 25 20 23 29 32 23 26 20 16 25 24 30 21 26 28 20 20 23 26 18 27 25 27 28 25 25 28 25 24 28 18 25 26 32 23 20 20 26 24 21 31 27 27 20 22 25 24 32 25 24 21 31 27 26 23 19 22 23 23 23 31 26 29 27 25 20 18 23 28 24 21 22 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 979, 17
Test #26:
score: 0
Accepted
time: 37ms
memory: 3712kb
input:
1000 23 21 26 24 25 26 24 29 25 21 31 27 26 32 28 20 27 25 32 20 31 24 23 22 25 27 22 23 25 32 24 28 30 24 21 19 25 21 20 28 29 25 32 25 21 22 31 29 24 19 29 26 26 26 24 28 23 23 31 25 24 28 29 25 28 21 26 25 31 24 23 26 28 27 21 25 21 23 28 30 26 22 29 27 24 24 25 30 24 27 29 24 31 22 18 27 25 25 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 39, 538
Test #27:
score: 0
Accepted
time: 30ms
memory: 3584kb
input:
1000 26 21 33 27 24 24 25 24 21 27 23 23 23 28 23 25 26 28 27 18 27 27 26 29 27 25 20 26 25 26 23 27 31 25 25 24 23 27 24 24 31 26 25 27 21 29 30 32 21 31 30 19 26 22 24 28 24 27 30 22 27 27 22 29 26 22 33 27 30 20 27 25 24 27 26 28 22 26 22 31 26 20 29 23 22 21 22 30 27 25 32 20 27 27 24 25 28 30 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 98, 412
Test #28:
score: 0
Accepted
time: 39ms
memory: 3584kb
input:
1000 26 24 24 20 28 25 25 24 29 26 24 25 21 23 23 28 24 26 22 30 25 18 26 18 24 26 20 25 27 20 29 26 30 23 23 31 25 24 22 28 24 24 27 26 24 18 30 22 24 29 25 20 17 24 28 25 23 29 25 22 22 26 22 22 27 26 24 24 30 20 18 27 23 26 29 38 24 17 23 19 27 30 26 20 28 22 21 28 20 26 22 20 24 31 27 28 23 30 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 598, 970
Test #29:
score: 0
Accepted
time: 34ms
memory: 3712kb
input:
1000 22 23 29 28 18 28 23 26 21 24 25 28 25 30 23 20 29 20 33 24 26 27 22 29 23 22 26 30 21 28 25 24 23 24 25 26 23 24 29 26 23 24 24 29 23 29 26 17 17 21 22 27 24 31 24 23 26 25 26 23 22 25 22 27 27 20 29 23 26 27 29 17 28 15 18 27 24 29 26 25 22 27 22 27 20 27 27 26 28 22 17 27 22 26 25 30 29 24 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 657, 844
Test #30:
score: 0
Accepted
time: 25ms
memory: 3712kb
input:
1000 26 19 25 23 23 23 28 25 28 29 26 26 26 31 22 24 23 23 24 24 21 25 26 27 27 23 27 23 24 21 24 21 24 28 26 25 22 24 23 21 22 26 23 23 19 27 28 26 22 28 23 28 27 28 19 23 25 30 23 23 26 20 23 25 26 24 25 27 28 16 22 28 27 30 21 22 25 25 31 22 25 27 28 32 21 25 26 18 23 23 26 16 20 24 25 26 19 28 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 716, 718
Test #31:
score: 0
Accepted
time: 36ms
memory: 3712kb
input:
1000 18 23 17 22 22 31 22 20 19 29 28 23 19 28 23 19 23 20 25 29 27 30 18 25 23 20 24 23 28 30 23 33 26 29 25 26 25 25 23 24 27 23 25 28 23 25 22 31 21 28 31 19 26 32 33 20 26 33 24 24 22 25 26 22 24 27 17 23 22 31 27 24 27 27 20 24 27 28 22 29 28 24 26 19 24 20 26 25 22 20 31 31 24 25 24 18 23 25 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 57, 240
Test #32:
score: 0
Accepted
time: 37ms
memory: 3712kb
input:
1000 21 16 29 23 24 25 28 20 16 27 28 23 27 20 26 17 20 33 19 32 27 31 21 23 22 24 25 20 27 21 23 22 23 22 16 27 29 24 27 26 22 29 22 20 16 23 27 31 24 31 28 22 22 27 28 23 27 22 24 17 24 31 19 26 27 29 29 22 27 28 23 20 27 27 37 28 27 24 24 21 25 22 27 26 30 27 22 18 23 24 31 28 27 24 25 25 25 26 3...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 113, 116
Test #33:
score: 0
Accepted
time: 28ms
memory: 3584kb
input:
1000 30 30 28 21 27 28 30 27 22 27 21 28 25 21 28 25 21 25 20 29 28 23 30 26 22 27 23 26 22 31 30 29 23 22 21 25 26 21 29 27 32 19 26 23 30 26 26 27 19 26 24 17 24 29 23 24 23 27 26 31 29 25 32 21 22 33 28 22 26 27 29 26 26 21 28 25 19 30 27 23 26 19 29 17 28 19 28 25 21 27 27 27 26 21 31 22 21 26 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 175, 635
Test #34:
score: 0
Accepted
time: 37ms
memory: 3712kb
input:
1000 25 23 20 27 25 25 32 31 26 16 30 29 22 35 21 24 24 27 32 27 22 32 25 24 25 24 32 28 27 26 21 27 21 16 23 24 24 25 33 26 21 20 27 25 23 24 21 26 22 28 25 22 27 19 21 26 27 30 26 27 23 26 21 28 25 27 20 25 21 27 27 23 26 29 24 22 26 31 26 33 23 24 22 31 24 31 32 22 27 24 26 27 26 24 29 22 29 23 1...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 235, 509
Test #35:
score: 0
Accepted
time: 26ms
memory: 3584kb
input:
1000 23 25 25 23 26 23 26 19 24 28 26 21 25 27 22 22 31 23 20 27 27 26 23 30 22 22 21 20 29 24 23 23 27 26 28 28 21 23 28 28 29 24 20 27 25 30 24 22 25 30 21 22 27 25 25 26 26 14 25 29 22 24 27 18 28 23 25 22 24 26 27 30 21 20 21 27 21 20 28 24 19 27 18 30 29 22 24 27 23 22 22 26 19 26 31 26 27 25 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 30, 294
Test #36:
score: 0
Accepted
time: 43ms
memory: 3712kb
input:
1000 24 27 21 15 25 24 25 22 31 28 25 22 25 31 28 28 25 32 23 33 23 30 24 27 23 29 23 20 27 28 21 28 29 28 27 23 28 24 25 28 27 19 23 30 27 27 26 24 30 25 28 25 18 25 30 29 28 26 27 23 22 33 24 18 28 19 21 23 26 22 20 27 26 23 28 25 26 21 28 24 27 23 22 31 28 24 28 25 15 29 24 22 28 29 24 29 22 29 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 634, 904
Test #37:
score: 0
Accepted
time: 27ms
memory: 3712kb
input:
1000 23 21 26 20 21 23 18 30 22 18 24 21 31 23 19 22 27 23 27 31 20 24 23 24 23 25 26 24 27 23 29 23 23 24 24 26 24 25 20 32 24 32 25 23 21 24 23 29 26 24 23 29 25 25 19 28 26 20 24 23 24 24 24 24 25 19 26 23 23 30 27 27 26 26 22 26 26 23 21 23 23 26 21 29 25 23 26 22 20 25 29 30 25 33 26 28 24 22 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 693, 778
Test #38:
score: 0
Accepted
time: 38ms
memory: 3712kb
input:
1000 29 32 29 19 24 33 22 27 22 18 26 25 32 21 23 22 17 23 23 30 19 21 29 19 30 32 29 26 31 22 31 25 23 22 17 26 26 23 28 28 26 21 26 32 32 19 21 21 24 25 26 29 28 22 22 27 18 25 29 26 35 25 23 26 31 33 29 30 21 20 27 18 29 26 29 23 29 34 25 30 26 31 24 24 24 29 26 32 19 32 21 20 23 24 23 28 27 23 2...
output:
1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 2 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 3 1 3 2 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22...
result:
ok Found equal strings: 336, 912
Test #39:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
2 0
output:
1 2
result:
ok Found equal strings: 1, 2
Extra Test:
score: 0
Extra Test Passed