QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#872651 | #8615. Equal Strings | ucup-team3695# | AC ✓ | 42ms | 3840kb | C++20 | 1.4kb | 2025-01-26 03:12:41 | 2025-01-26 03:12:48 |
Judging History
answer
#include <bits/extc++.h>
using namespace std;
using namespace chrono;
namespace rg = ranges;
namespace vw = views;
template<integral T>
T get_seed()
{
random_device rd{};
T x1 = uniform_int_distribution<T>(numeric_limits<T>::min(), numeric_limits<T>::max())(rd);
T x2 = T(steady_clock::now().time_since_epoch().count());
return x1 ^ x2;
}
int qry(int i, int j)
{
cout << i + 1 << ' ' << j + 1 << '\n' << flush;
int d;
cin >> d;
if (d == 0)
exit(0);
return d;
}
constexpr int T = 25000;
int D[1000];
bitset<1000> used, possible[1000], by_d[1000];
int main()
{
cin.tie(0)->sync_with_stdio();
int n;
cin >> n;
for (int i = 0; i < n; i++)
{
possible[i].set();
possible[i].reset(i);
}
mt19937_64 randy(get_seed<uint_fast64_t>());
uniform_int_distribution<int> idx(0, n - 1);
for (int i = 0; i < T - 1000; i += n)
{
int j;
do
j = idx(randy);
while (used[j]);
used.set(j);
possible[j].reset();
for (int d = 0; d < n; d++)
by_d[d].reset();
for (int k = 0; k < n; k++)
{
if (used[k])
continue;
int d = D[k] = qry(j, k) - 1;
by_d[d].set(k);
}
for (int k = 0; k < n; k++)
possible[k] &= by_d[D[k]];
}
for (int i = 0; i < n; i++)
{
if (used[i])
continue;
for (int j = 0; j < n; j++)
if (possible[i][j])
qry(i, j);
}
}
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3456kb
input:
4 21 24 21 0
output:
1 2 1 3 1 4 4 2
result:
ok Found equal strings: 4, 2
Test #2:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
4 28 28 25 0
output:
2 1 2 3 2 4 1 3
result:
ok Found equal strings: 1, 3
Test #3:
score: 0
Accepted
time: 1ms
memory: 3328kb
input:
10 21 26 25 25 18 26 26 25 21 29 18 27 23 30 34 27 29 23 29 19 26 30 29 21 24 0
output:
5 1 5 2 5 3 5 4 5 6 5 7 5 8 5 9 5 10 7 1 7 2 7 3 7 4 7 6 7 8 7 9 7 10 2 1 2 3 2 4 2 6 2 8 2 9 2 10 9 1 9 3
result:
ok Found equal strings: 9, 3
Test #4:
score: 0
Accepted
time: 5ms
memory: 3456kb
input:
100 17 28 30 17 30 22 25 24 25 22 23 34 21 23 28 27 22 30 22 25 23 26 24 21 21 21 24 25 26 34 17 23 24 22 28 26 28 22 20 31 26 18 24 21 21 24 30 26 27 27 22 23 25 28 24 25 26 20 28 29 29 28 23 32 29 30 30 27 28 31 22 25 27 24 23 18 20 31 27 31 29 23 29 26 30 17 23 29 27 23 26 31 20 22 26 27 19 22 28...
output:
97 1 97 2 97 3 97 4 97 5 97 6 97 7 97 8 97 9 97 10 97 11 97 12 97 13 97 14 97 15 97 16 97 17 97 18 97 19 97 20 97 21 97 22 97 23 97 24 97 25 97 26 97 27 97 28 97 29 97 30 97 31 97 32 97 33 97 34 97 35 97 36 97 37 97 38 97 39 97 40 97 41 97 42 97 43 97 44 97 45 97 46 97 47 97 48 97 49 97 50 97 51 97 ...
result:
ok Found equal strings: 100, 62
Test #5:
score: 0
Accepted
time: 27ms
memory: 3584kb
input:
500 25 24 23 26 26 27 31 26 27 30 25 21 22 21 22 25 25 22 22 18 24 31 28 25 20 21 23 26 32 29 27 29 22 18 20 30 21 23 22 25 37 27 22 20 19 21 31 30 29 22 22 25 19 22 26 22 28 24 24 30 22 23 33 23 27 31 25 24 19 22 26 27 22 26 24 25 28 26 23 21 29 31 33 23 26 28 25 28 25 20 26 23 30 21 27 26 27 26 29...
output:
31 1 31 2 31 3 31 4 31 5 31 6 31 7 31 8 31 9 31 10 31 11 31 12 31 13 31 14 31 15 31 16 31 17 31 18 31 19 31 20 31 21 31 22 31 23 31 24 31 25 31 26 31 27 31 28 31 29 31 30 31 32 31 33 31 34 31 35 31 36 31 37 31 38 31 39 31 40 31 41 31 42 31 43 31 44 31 45 31 46 31 47 31 48 31 49 31 50 31 51 31 52 31 ...
result:
ok Found equal strings: 100, 334
Test #6:
score: 0
Accepted
time: 29ms
memory: 3840kb
input:
750 33 30 16 24 26 25 24 27 25 26 28 21 26 30 21 19 25 25 29 28 22 27 26 29 22 22 21 27 18 31 25 25 23 28 17 25 34 28 25 26 29 27 28 19 23 21 25 21 19 31 29 26 23 25 23 24 25 22 23 22 26 32 30 23 29 25 29 26 25 27 33 24 25 25 28 22 23 30 19 25 21 24 19 20 24 27 24 27 24 30 26 28 21 27 25 27 31 19 23...
output:
263 1 263 2 263 3 263 4 263 5 263 6 263 7 263 8 263 9 263 10 263 11 263 12 263 13 263 14 263 15 263 16 263 17 263 18 263 19 263 20 263 21 263 22 263 23 263 24 263 25 263 26 263 27 263 28 263 29 263 30 263 31 263 32 263 33 263 34 263 35 263 36 263 37 263 38 263 39 263 40 263 41 263 42 263 43 263 44 2...
result:
ok Found equal strings: 130, 698
Test #7:
score: 0
Accepted
time: 42ms
memory: 3712kb
input:
999 25 30 25 27 25 22 34 27 24 18 23 29 18 25 24 27 24 30 23 19 25 33 24 29 25 23 21 26 27 22 24 21 25 25 27 21 25 25 21 26 32 22 27 26 28 25 27 26 15 24 26 24 21 25 27 26 28 27 21 22 19 31 26 22 27 32 21 23 23 23 19 25 21 21 28 28 23 22 25 24 25 31 26 22 31 26 31 29 25 26 25 22 24 27 21 27 21 30 22...
output:
156 1 156 2 156 3 156 4 156 5 156 6 156 7 156 8 156 9 156 10 156 11 156 12 156 13 156 14 156 15 156 16 156 17 156 18 156 19 156 20 156 21 156 22 156 23 156 24 156 25 156 26 156 27 156 28 156 29 156 30 156 31 156 32 156 33 156 34 156 35 156 36 156 37 156 38 156 39 156 40 156 41 156 42 156 43 156 44 1...
result:
ok Found equal strings: 205, 281
Test #8:
score: 0
Accepted
time: 40ms
memory: 3712kb
input:
1000 30 19 20 26 30 22 29 16 24 22 19 28 31 21 28 27 25 24 28 29 26 15 24 20 23 23 22 25 23 22 26 23 24 25 26 28 24 28 27 25 31 26 28 27 24 25 26 29 21 27 28 27 25 27 22 21 30 29 19 22 29 25 24 31 19 26 20 29 28 34 29 22 24 21 25 27 26 22 27 19 20 25 28 31 19 23 20 21 23 19 25 28 25 28 25 21 30 22 1...
output:
788 1 788 2 788 3 788 4 788 5 788 6 788 7 788 8 788 9 788 10 788 11 788 12 788 13 788 14 788 15 788 16 788 17 788 18 788 19 788 20 788 21 788 22 788 23 788 24 788 25 788 26 788 27 788 28 788 29 788 30 788 31 788 32 788 33 788 34 788 35 788 36 788 37 788 38 788 39 788 40 788 41 788 42 788 43 788 44 7...
result:
ok Found equal strings: 211, 327
Test #9:
score: 0
Accepted
time: 36ms
memory: 3712kb
input:
1000 29 27 24 20 29 18 19 26 28 18 27 24 32 26 25 24 30 24 29 24 34 20 23 27 24 17 21 29 27 26 27 20 21 23 19 28 25 27 25 30 25 24 21 29 31 26 19 27 27 22 24 25 27 25 25 23 18 21 32 27 23 29 23 26 28 28 25 24 29 26 23 21 22 27 25 31 24 23 22 25 23 27 15 28 24 23 31 27 19 24 22 28 27 25 27 22 23 24 1...
output:
315 1 315 2 315 3 315 4 315 5 315 6 315 7 315 8 315 9 315 10 315 11 315 12 315 13 315 14 315 15 315 16 315 17 315 18 315 19 315 20 315 21 315 22 315 23 315 24 315 25 315 26 315 27 315 28 315 29 315 30 315 31 315 32 315 33 315 34 315 35 315 36 315 37 315 38 315 39 315 40 315 41 315 42 315 43 315 44 3...
result:
ok Found equal strings: 220, 448
Test #10:
score: 0
Accepted
time: 28ms
memory: 3712kb
input:
1000 23 26 24 29 31 21 24 27 27 26 25 20 30 28 25 31 28 20 26 27 21 21 24 27 25 25 21 24 23 20 20 26 29 24 26 26 26 24 30 23 29 25 27 30 26 19 23 26 28 26 25 22 27 22 24 24 24 28 28 25 24 27 20 27 26 24 20 26 28 32 30 21 23 24 29 26 31 22 25 28 24 22 23 28 24 24 27 21 20 21 26 22 29 21 31 19 27 17 2...
output:
423 1 423 2 423 3 423 4 423 5 423 6 423 7 423 8 423 9 423 10 423 11 423 12 423 13 423 14 423 15 423 16 423 17 423 18 423 19 423 20 423 21 423 22 423 23 423 24 423 25 423 26 423 27 423 28 423 29 423 30 423 31 423 32 423 33 423 34 423 35 423 36 423 37 423 38 423 39 423 40 423 41 423 42 423 43 423 44 4...
result:
ok Found equal strings: 279, 970
Test #11:
score: 0
Accepted
time: 33ms
memory: 3712kb
input:
1000 20 22 24 28 22 23 18 21 24 25 22 27 29 25 23 32 21 32 24 20 22 22 25 30 27 25 20 26 27 25 18 26 23 26 24 25 22 26 32 28 30 28 20 26 26 21 17 27 30 24 29 19 28 26 27 26 22 27 23 25 24 24 25 21 21 20 26 25 21 31 22 19 28 25 20 26 22 21 21 23 19 29 24 18 30 22 21 28 21 23 23 24 26 25 23 29 27 26 2...
output:
206 1 206 2 206 3 206 4 206 5 206 6 206 7 206 8 206 9 206 10 206 11 206 12 206 13 206 14 206 15 206 16 206 17 206 18 206 19 206 20 206 21 206 22 206 23 206 24 206 25 206 26 206 27 206 28 206 29 206 30 206 31 206 32 206 33 206 34 206 35 206 36 206 37 206 38 206 39 206 40 206 41 206 42 206 43 206 44 2...
result:
ok Found equal strings: 619, 843
Test #12:
score: 0
Accepted
time: 24ms
memory: 3712kb
input:
1000 23 24 32 24 28 26 21 31 28 22 20 26 24 27 23 23 22 23 26 33 27 28 28 25 28 25 23 30 21 28 26 28 25 22 22 28 21 27 26 26 30 22 28 28 29 27 21 27 23 25 27 25 26 23 21 23 28 27 22 15 21 31 24 23 27 23 21 28 23 24 16 27 23 20 24 25 22 15 28 25 26 22 24 24 24 24 19 26 26 25 25 29 26 27 21 24 23 27 2...
output:
800 1 800 2 800 3 800 4 800 5 800 6 800 7 800 8 800 9 800 10 800 11 800 12 800 13 800 14 800 15 800 16 800 17 800 18 800 19 800 20 800 21 800 22 800 23 800 24 800 25 800 26 800 27 800 28 800 29 800 30 800 31 800 32 800 33 800 34 800 35 800 36 800 37 800 38 800 39 800 40 800 41 800 42 800 43 800 44 8...
result:
ok Found equal strings: 678, 717
Test #13:
score: 0
Accepted
time: 22ms
memory: 3712kb
input:
1000 33 30 24 25 26 29 26 26 18 23 20 25 22 17 26 24 28 20 32 30 26 28 27 21 20 28 24 30 26 22 26 22 29 28 24 24 31 22 33 30 21 25 25 32 24 29 25 27 21 19 26 24 21 22 23 26 24 27 20 22 23 24 24 27 32 23 24 28 25 25 30 25 24 23 27 20 29 32 23 23 30 22 29 21 27 21 25 20 26 19 24 23 27 24 26 11 22 15 2...
output:
957 1 957 2 957 3 957 4 957 5 957 6 957 7 957 8 957 9 957 10 957 11 957 12 957 13 957 14 957 15 957 16 957 17 957 18 957 19 957 20 957 21 957 22 957 23 957 24 957 25 957 26 957 27 957 28 957 29 957 30 957 31 957 32 957 33 957 34 957 35 957 36 957 37 957 38 957 39 957 40 957 41 957 42 957 43 957 44 9...
result:
ok Found equal strings: 239, 737
Test #14:
score: 0
Accepted
time: 30ms
memory: 3840kb
input:
1000 27 27 23 24 22 28 25 30 25 23 22 23 23 23 24 27 24 26 29 14 27 20 34 19 28 29 25 25 35 27 22 30 27 25 28 22 30 33 26 26 30 26 25 28 26 24 21 26 30 28 20 25 24 22 21 26 30 21 28 22 24 27 24 23 27 21 20 25 26 20 19 29 26 26 27 25 26 29 25 25 25 25 22 25 20 28 25 21 21 23 26 23 26 24 30 27 31 25 2...
output:
484 1 484 2 484 3 484 4 484 5 484 6 484 7 484 8 484 9 484 10 484 11 484 12 484 13 484 14 484 15 484 16 484 17 484 18 484 19 484 20 484 21 484 22 484 23 484 24 484 25 484 26 484 27 484 28 484 29 484 30 484 31 484 32 484 33 484 34 484 35 484 36 484 37 484 38 484 39 484 40 484 41 484 42 484 43 484 44 4...
result:
ok Found equal strings: 112, 796
Test #15:
score: 0
Accepted
time: 32ms
memory: 3712kb
input:
1000 21 21 20 25 26 22 23 22 26 21 28 29 22 27 25 23 27 25 24 21 32 27 29 33 20 20 23 34 27 29 27 27 23 25 25 24 23 23 24 31 24 27 22 23 30 24 25 17 24 23 31 21 26 20 31 24 22 28 27 33 27 23 18 29 25 20 31 23 30 26 26 29 23 24 21 28 29 24 23 28 28 24 28 22 25 27 28 21 20 27 25 30 24 24 32 28 25 26 1...
output:
348 1 348 2 348 3 348 4 348 5 348 6 348 7 348 8 348 9 348 10 348 11 348 12 348 13 348 14 348 15 348 16 348 17 348 18 348 19 348 20 348 21 348 22 348 23 348 24 348 25 348 26 348 27 348 28 348 29 348 30 348 31 348 32 348 33 348 34 348 35 348 36 348 37 348 38 348 39 348 40 348 41 348 42 348 43 348 44 3...
result:
ok Found equal strings: 634, 855
Test #16:
score: 0
Accepted
time: 36ms
memory: 3712kb
input:
1000 24 23 27 18 26 21 20 19 21 28 24 23 28 20 24 24 25 24 23 29 35 28 28 23 23 29 28 24 29 29 23 25 26 29 30 21 26 22 27 24 20 24 22 22 26 26 29 29 22 23 28 29 28 29 24 32 24 26 27 20 31 26 28 25 25 27 29 24 23 26 29 27 31 24 26 24 21 20 37 30 19 24 24 20 29 25 22 31 27 26 24 23 22 26 25 25 14 19 2...
output:
561 1 561 2 561 3 561 4 561 5 561 6 561 7 561 8 561 9 561 10 561 11 561 12 561 13 561 14 561 15 561 16 561 17 561 18 561 19 561 20 561 21 561 22 561 23 561 24 561 25 561 26 561 27 561 28 561 29 561 30 561 31 561 32 561 33 561 34 561 35 561 36 561 37 561 38 561 39 561 40 561 41 561 42 561 43 561 44 5...
result:
ok Found equal strings: 196, 508
Test #17:
score: 0
Accepted
time: 18ms
memory: 3712kb
input:
1000 19 27 28 19 28 28 26 28 23 22 27 25 20 28 23 26 29 25 22 26 28 24 27 27 23 26 26 19 31 26 28 32 29 28 23 26 25 19 25 26 21 30 31 21 27 25 27 23 32 28 17 28 28 25 26 26 26 25 24 25 27 26 21 26 25 18 26 21 29 29 32 28 19 27 27 25 21 27 31 24 22 32 32 24 27 25 23 25 25 26 23 21 23 30 31 24 24 33 2...
output:
912 1 912 2 912 3 912 4 912 5 912 6 912 7 912 8 912 9 912 10 912 11 912 12 912 13 912 14 912 15 912 16 912 17 912 18 912 19 912 20 912 21 912 22 912 23 912 24 912 25 912 26 912 27 912 28 912 29 912 30 912 31 912 32 912 33 912 34 912 35 912 36 912 37 912 38 912 39 912 40 912 41 912 42 912 43 912 44 9...
result:
ok Found equal strings: 30, 255
Test #18:
score: 0
Accepted
time: 22ms
memory: 3712kb
input:
1000 27 27 24 24 25 25 25 13 23 30 21 27 23 21 27 18 19 27 24 24 23 19 23 22 26 21 25 26 29 24 27 29 28 31 20 28 23 26 23 22 32 25 22 25 22 31 28 31 27 28 35 30 26 25 28 27 26 22 28 30 23 24 30 22 17 23 24 28 23 24 24 19 24 21 28 23 27 19 18 26 21 28 23 22 21 25 25 28 25 32 22 23 28 26 27 29 25 22 2...
output:
226 1 226 2 226 3 226 4 226 5 226 6 226 7 226 8 226 9 226 10 226 11 226 12 226 13 226 14 226 15 226 16 226 17 226 18 226 19 226 20 226 21 226 22 226 23 226 24 226 25 226 26 226 27 226 28 226 29 226 30 226 31 226 32 226 33 226 34 226 35 226 36 226 37 226 38 226 39 226 40 226 41 226 42 226 43 226 44 2...
result:
ok Found equal strings: 957, 284
Test #19:
score: 0
Accepted
time: 37ms
memory: 3712kb
input:
1000 23 25 24 27 28 27 25 24 21 23 25 29 27 30 24 30 23 30 26 22 22 33 25 27 20 24 23 23 29 30 28 25 27 25 28 31 21 36 28 20 25 25 26 20 23 22 23 24 21 23 28 26 29 29 27 23 28 22 24 19 26 22 19 21 28 19 23 27 19 28 24 24 23 21 24 30 25 32 26 21 18 27 26 23 25 29 23 31 25 18 22 19 21 23 25 29 17 20 2...
output:
423 1 423 2 423 3 423 4 423 5 423 6 423 7 423 8 423 9 423 10 423 11 423 12 423 13 423 14 423 15 423 16 423 17 423 18 423 19 423 20 423 21 423 22 423 23 423 24 423 25 423 26 423 27 423 28 423 29 423 30 423 31 423 32 423 33 423 34 423 35 423 36 423 37 423 38 423 39 423 40 423 41 423 42 423 43 423 44 4...
result:
ok Found equal strings: 343, 478
Test #20:
score: 0
Accepted
time: 35ms
memory: 3840kb
input:
1000 19 18 23 26 28 27 22 24 25 25 21 26 29 32 27 26 31 25 20 27 29 28 30 23 26 25 25 27 25 21 31 27 21 33 25 26 18 20 24 23 27 28 26 21 26 23 26 34 26 23 22 22 23 27 23 30 21 25 15 24 24 30 22 22 28 27 22 25 26 30 24 25 25 25 20 23 26 22 25 26 23 28 29 23 30 24 33 26 26 20 31 29 36 29 24 31 22 28 2...
output:
804 1 804 2 804 3 804 4 804 5 804 6 804 7 804 8 804 9 804 10 804 11 804 12 804 13 804 14 804 15 804 16 804 17 804 18 804 19 804 20 804 21 804 22 804 23 804 24 804 25 804 26 804 27 804 28 804 29 804 30 804 31 804 32 804 33 804 34 804 35 804 36 804 37 804 38 804 39 804 40 804 41 804 42 804 43 804 44 8...
result:
ok Found equal strings: 352, 402
Test #21:
score: 0
Accepted
time: 42ms
memory: 3840kb
input:
1000 27 20 23 25 27 21 26 24 27 26 28 26 28 27 24 21 24 30 18 20 27 21 27 22 29 26 27 26 21 27 28 22 27 22 25 27 27 23 26 23 17 28 23 21 29 24 24 26 23 27 23 27 28 24 29 24 23 24 30 20 26 24 25 22 21 26 25 27 19 22 27 20 30 25 24 26 31 27 26 19 24 17 28 21 26 21 21 21 27 25 20 25 25 25 25 25 21 21 2...
output:
245 1 245 2 245 3 245 4 245 5 245 6 245 7 245 8 245 9 245 10 245 11 245 12 245 13 245 14 245 15 245 16 245 17 245 18 245 19 245 20 245 21 245 22 245 23 245 24 245 25 245 26 245 27 245 28 245 29 245 30 245 31 245 32 245 33 245 34 245 35 245 36 245 37 245 38 245 39 245 40 245 41 245 42 245 43 245 44 2...
result:
ok Found equal strings: 462, 874
Test #22:
score: 0
Accepted
time: 34ms
memory: 3712kb
input:
1000 23 22 33 25 22 25 23 24 27 25 27 34 26 24 22 26 32 18 19 24 23 24 23 27 20 18 18 23 23 22 24 23 21 27 28 27 22 24 19 17 26 21 31 26 21 23 20 27 25 21 24 24 29 29 30 26 28 31 12 23 28 28 27 26 28 27 35 26 27 24 24 27 22 26 28 28 31 21 29 29 22 27 25 24 29 21 17 27 27 26 25 30 24 27 21 27 29 25 2...
output:
152 1 152 2 152 3 152 4 152 5 152 6 152 7 152 8 152 9 152 10 152 11 152 12 152 13 152 14 152 15 152 16 152 17 152 18 152 19 152 20 152 21 152 22 152 23 152 24 152 25 152 26 152 27 152 28 152 29 152 30 152 31 152 32 152 33 152 34 152 35 152 36 152 37 152 38 152 39 152 40 152 41 152 42 152 43 152 44 1...
result:
ok Found equal strings: 521, 747
Test #23:
score: 0
Accepted
time: 33ms
memory: 3840kb
input:
1000 32 24 24 27 27 27 30 23 25 22 24 22 29 24 27 28 24 24 35 28 23 20 30 25 25 25 30 28 26 25 27 27 25 27 20 26 25 20 27 23 27 27 28 31 25 23 24 25 33 31 23 24 29 22 26 26 25 27 22 28 27 25 26 26 29 24 27 20 19 29 23 29 29 23 27 17 20 27 29 21 30 20 23 27 29 27 22 28 28 20 30 30 22 31 21 25 26 21 2...
output:
723 1 723 2 723 3 723 4 723 5 723 6 723 7 723 8 723 9 723 10 723 11 723 12 723 13 723 14 723 15 723 16 723 17 723 18 723 19 723 20 723 21 723 22 723 23 723 24 723 25 723 26 723 27 723 28 723 29 723 30 723 31 723 32 723 33 723 34 723 35 723 36 723 37 723 38 723 39 723 40 723 41 723 42 723 43 723 44 7...
result:
ok Found equal strings: 621, 861
Test #24:
score: 0
Accepted
time: 37ms
memory: 3712kb
input:
1000 25 20 24 21 26 26 26 33 26 22 20 26 25 23 24 21 22 30 21 26 27 27 31 26 20 30 26 27 29 25 27 27 25 17 19 27 26 22 22 24 30 23 22 21 29 20 29 30 24 24 28 26 32 26 27 25 21 26 20 26 21 20 23 20 19 26 29 24 28 28 27 20 22 27 28 27 21 22 19 28 24 25 24 26 24 24 26 19 18 30 22 25 26 18 24 17 26 27 2...
output:
886 1 886 2 886 3 886 4 886 5 886 6 886 7 886 8 886 9 886 10 886 11 886 12 886 13 886 14 886 15 886 16 886 17 886 18 886 19 886 20 886 21 886 22 886 23 886 24 886 25 886 26 886 27 886 28 886 29 886 30 886 31 886 32 886 33 886 34 886 35 886 36 886 37 886 38 886 39 886 40 886 41 886 42 886 43 886 44 8...
result:
ok Found equal strings: 143, 920
Test #25:
score: 0
Accepted
time: 36ms
memory: 3712kb
input:
1000 22 24 26 29 35 25 28 25 27 26 25 22 20 24 21 26 30 25 22 24 28 24 21 23 21 26 26 22 24 32 27 31 26 28 24 26 31 30 24 23 30 16 21 21 34 17 29 28 26 21 30 34 23 20 29 25 20 18 28 22 34 27 22 24 27 27 23 26 27 18 25 22 19 19 20 30 34 30 18 25 22 26 21 24 24 25 25 24 24 23 22 24 30 26 30 28 25 30 2...
output:
112 1 112 2 112 3 112 4 112 5 112 6 112 7 112 8 112 9 112 10 112 11 112 12 112 13 112 14 112 15 112 16 112 17 112 18 112 19 112 20 112 21 112 22 112 23 112 24 112 25 112 26 112 27 112 28 112 29 112 30 112 31 112 32 112 33 112 34 112 35 112 36 112 37 112 38 112 39 112 40 112 41 112 42 112 43 112 44 1...
result:
ok Found equal strings: 17, 979
Test #26:
score: 0
Accepted
time: 38ms
memory: 3840kb
input:
1000 26 23 19 26 22 27 26 27 19 25 25 29 24 20 18 24 27 19 22 26 21 24 23 20 29 26 30 25 35 20 20 23 24 24 30 25 25 29 24 25 25 24 22 35 23 24 22 19 27 24 21 26 25 25 25 25 34 24 27 23 25 21 30 25 20 28 25 27 31 21 22 28 28 24 24 22 24 28 26 27 20 23 22 23 26 29 20 26 27 25 21 20 28 25 25 23 23 19 2...
output:
7 1 7 2 7 3 7 4 7 5 7 6 7 8 7 9 7 10 7 11 7 12 7 13 7 14 7 15 7 16 7 17 7 18 7 19 7 20 7 21 7 22 7 23 7 24 7 25 7 26 7 27 7 28 7 29 7 30 7 31 7 32 7 33 7 34 7 35 7 36 7 37 7 38 7 39 7 40 7 41 7 42 7 43 7 44 7 45 7 46 7 47 7 48 7 49 7 50 7 51 7 52 7 53 7 54 7 55 7 56 7 57 7 58 7 59 7 60 7 61 7 62 7 6...
result:
ok Found equal strings: 39, 538
Test #27:
score: 0
Accepted
time: 38ms
memory: 3840kb
input:
1000 26 22 31 23 21 24 28 27 28 21 21 25 23 29 30 23 23 26 24 25 18 25 19 26 26 24 19 22 25 25 24 31 20 29 31 29 25 27 25 27 34 20 22 26 24 27 29 31 25 24 20 24 31 25 20 27 26 22 27 27 34 23 24 22 25 27 26 17 23 20 24 29 29 21 15 25 27 23 26 27 22 26 24 24 21 21 27 17 27 30 27 23 30 24 20 31 28 25 2...
output:
37 1 37 2 37 3 37 4 37 5 37 6 37 7 37 8 37 9 37 10 37 11 37 12 37 13 37 14 37 15 37 16 37 17 37 18 37 19 37 20 37 21 37 22 37 23 37 24 37 25 37 26 37 27 37 28 37 29 37 30 37 31 37 32 37 33 37 34 37 35 37 36 37 38 37 39 37 40 37 41 37 42 37 43 37 44 37 45 37 46 37 47 37 48 37 49 37 50 37 51 37 52 37 ...
result:
ok Found equal strings: 98, 412
Test #28:
score: 0
Accepted
time: 27ms
memory: 3712kb
input:
1000 26 30 28 28 18 28 21 27 26 25 26 24 25 27 21 23 30 28 22 24 30 25 20 32 23 23 24 28 22 22 13 21 20 25 30 24 26 25 25 29 23 25 26 19 29 30 22 28 27 25 26 31 25 21 28 22 21 25 29 24 23 28 28 28 21 26 33 28 25 22 23 25 28 26 26 27 24 25 28 23 27 24 29 27 28 26 25 27 27 30 25 25 28 23 25 22 29 32 2...
output:
858 1 858 2 858 3 858 4 858 5 858 6 858 7 858 8 858 9 858 10 858 11 858 12 858 13 858 14 858 15 858 16 858 17 858 18 858 19 858 20 858 21 858 22 858 23 858 24 858 25 858 26 858 27 858 28 858 29 858 30 858 31 858 32 858 33 858 34 858 35 858 36 858 37 858 38 858 39 858 40 858 41 858 42 858 43 858 44 8...
result:
ok Found equal strings: 598, 970
Test #29:
score: 0
Accepted
time: 26ms
memory: 3584kb
input:
1000 25 29 28 20 27 25 13 24 19 22 25 22 27 30 19 22 27 22 23 22 21 23 26 21 25 32 32 31 20 22 30 27 27 25 20 24 24 26 27 29 22 31 19 28 24 22 25 29 28 24 26 22 18 29 25 26 22 27 26 27 20 26 23 23 22 20 24 20 23 26 24 26 28 27 20 24 22 23 21 22 29 21 28 21 26 24 24 22 20 25 26 21 25 26 22 24 23 21 2...
output:
580 1 580 2 580 3 580 4 580 5 580 6 580 7 580 8 580 9 580 10 580 11 580 12 580 13 580 14 580 15 580 16 580 17 580 18 580 19 580 20 580 21 580 22 580 23 580 24 580 25 580 26 580 27 580 28 580 29 580 30 580 31 580 32 580 33 580 34 580 35 580 36 580 37 580 38 580 39 580 40 580 41 580 42 580 43 580 44 5...
result:
ok Found equal strings: 657, 844
Test #30:
score: 0
Accepted
time: 33ms
memory: 3584kb
input:
1000 23 25 24 20 26 24 26 23 26 19 24 31 25 25 30 23 33 28 20 27 31 26 24 21 30 20 17 20 26 21 27 21 27 25 24 31 27 27 26 29 27 30 25 23 28 24 23 29 31 27 28 29 21 22 20 25 22 25 21 24 19 24 25 22 31 25 22 29 24 25 26 24 26 31 23 23 20 21 30 27 22 19 31 29 25 25 22 25 22 24 25 28 27 26 28 29 28 29 2...
output:
438 1 438 2 438 3 438 4 438 5 438 6 438 7 438 8 438 9 438 10 438 11 438 12 438 13 438 14 438 15 438 16 438 17 438 18 438 19 438 20 438 21 438 22 438 23 438 24 438 25 438 26 438 27 438 28 438 29 438 30 438 31 438 32 438 33 438 34 438 35 438 36 438 37 438 38 438 39 438 40 438 41 438 42 438 43 438 44 4...
result:
ok Found equal strings: 716, 718
Test #31:
score: 0
Accepted
time: 22ms
memory: 3840kb
input:
1000 25 27 20 26 31 23 20 27 19 22 30 29 22 24 27 20 26 26 27 24 20 20 29 28 24 21 23 28 30 27 30 21 23 28 30 27 20 25 27 28 24 26 29 27 30 26 25 25 23 20 14 23 24 27 21 27 24 25 21 26 30 23 27 23 25 28 31 24 22 20 17 22 29 26 25 23 20 28 29 25 27 19 24 24 30 24 24 22 27 23 27 20 23 27 24 25 21 24 2...
output:
917 1 917 2 917 3 917 4 917 5 917 6 917 7 917 8 917 9 917 10 917 11 917 12 917 13 917 14 917 15 917 16 917 17 917 18 917 19 917 20 917 21 917 22 917 23 917 24 917 25 917 26 917 27 917 28 917 29 917 30 917 31 917 32 917 33 917 34 917 35 917 36 917 37 917 38 917 39 917 40 917 41 917 42 917 43 917 44 9...
result:
ok Found equal strings: 57, 240
Test #32:
score: 0
Accepted
time: 33ms
memory: 3712kb
input:
1000 20 31 28 25 19 24 29 24 22 22 31 30 23 31 18 22 27 28 25 25 26 27 33 24 28 25 22 23 28 26 25 30 20 26 27 32 17 29 22 26 18 24 28 18 22 23 27 25 26 28 32 26 21 24 24 28 26 31 20 27 36 25 32 20 28 25 22 25 22 25 23 22 26 21 25 26 26 27 26 30 18 18 26 31 23 21 26 21 27 26 27 28 31 24 27 31 21 26 2...
output:
679 1 679 2 679 3 679 4 679 5 679 6 679 7 679 8 679 9 679 10 679 11 679 12 679 13 679 14 679 15 679 16 679 17 679 18 679 19 679 20 679 21 679 22 679 23 679 24 679 25 679 26 679 27 679 28 679 29 679 30 679 31 679 32 679 33 679 34 679 35 679 36 679 37 679 38 679 39 679 40 679 41 679 42 679 43 679 44 6...
result:
ok Found equal strings: 113, 116
Test #33:
score: 0
Accepted
time: 40ms
memory: 3840kb
input:
1000 27 31 25 23 26 24 21 29 18 29 26 26 31 22 26 19 24 26 28 25 24 29 30 29 28 29 27 20 25 24 29 27 21 19 26 25 26 27 26 20 27 27 25 27 29 32 20 22 24 21 29 30 23 23 27 25 23 28 19 30 26 25 28 28 24 20 28 18 24 24 30 30 31 20 18 23 36 16 26 21 32 23 30 23 21 24 22 24 29 21 29 20 23 21 22 27 22 28 3...
output:
416 1 416 2 416 3 416 4 416 5 416 6 416 7 416 8 416 9 416 10 416 11 416 12 416 13 416 14 416 15 416 16 416 17 416 18 416 19 416 20 416 21 416 22 416 23 416 24 416 25 416 26 416 27 416 28 416 29 416 30 416 31 416 32 416 33 416 34 416 35 416 36 416 37 416 38 416 39 416 40 416 41 416 42 416 43 416 44 4...
result:
ok Found equal strings: 175, 635
Test #34:
score: 0
Accepted
time: 30ms
memory: 3712kb
input:
1000 27 32 30 29 28 28 22 21 30 23 21 25 22 25 28 28 21 19 28 27 20 17 23 25 30 26 21 27 21 31 23 30 23 27 21 29 19 27 25 32 24 21 25 19 32 37 26 34 27 28 25 26 27 25 22 25 24 23 24 24 23 29 28 26 29 31 27 26 23 25 22 34 25 24 23 24 26 28 21 22 25 27 28 21 23 20 25 31 21 25 26 21 25 23 28 26 21 34 2...
output:
247 1 247 2 247 3 247 4 247 5 247 6 247 7 247 8 247 9 247 10 247 11 247 12 247 13 247 14 247 15 247 16 247 17 247 18 247 19 247 20 247 21 247 22 247 23 247 24 247 25 247 26 247 27 247 28 247 29 247 30 247 31 247 32 247 33 247 34 247 35 247 36 247 37 247 38 247 39 247 40 247 41 247 42 247 43 247 44 2...
result:
ok Found equal strings: 235, 509
Test #35:
score: 0
Accepted
time: 38ms
memory: 3712kb
input:
1000 23 24 28 30 20 19 26 27 26 23 23 27 24 20 28 25 25 26 30 23 26 22 29 28 33 22 25 24 32 24 17 30 21 20 22 31 22 29 25 25 27 29 22 26 22 20 30 21 24 30 22 24 24 31 25 24 28 30 24 24 25 26 20 27 31 27 31 25 23 20 28 28 22 19 19 27 24 24 24 30 23 24 25 22 28 25 21 28 24 27 29 27 27 25 22 26 19 25 2...
output:
544 1 544 2 544 3 544 4 544 5 544 6 544 7 544 8 544 9 544 10 544 11 544 12 544 13 544 14 544 15 544 16 544 17 544 18 544 19 544 20 544 21 544 22 544 23 544 24 544 25 544 26 544 27 544 28 544 29 544 30 544 31 544 32 544 33 544 34 544 35 544 36 544 37 544 38 544 39 544 40 544 41 544 42 544 43 544 44 5...
result:
ok Found equal strings: 30, 294
Test #36:
score: 0
Accepted
time: 41ms
memory: 3584kb
input:
1000 23 23 22 30 26 26 21 24 29 24 21 24 33 26 24 29 21 28 21 20 26 30 19 28 24 19 32 24 29 29 25 27 21 18 23 26 31 28 26 20 25 28 34 29 23 25 27 31 25 24 27 28 27 24 26 29 22 28 20 21 21 31 28 25 25 22 21 28 23 31 27 20 30 21 23 25 20 20 26 24 24 30 27 23 27 26 30 32 25 34 28 26 29 28 27 27 27 24 2...
output:
603 1 603 2 603 3 603 4 603 5 603 6 603 7 603 8 603 9 603 10 603 11 603 12 603 13 603 14 603 15 603 16 603 17 603 18 603 19 603 20 603 21 603 22 603 23 603 24 603 25 603 26 603 27 603 28 603 29 603 30 603 31 603 32 603 33 603 34 603 35 603 36 603 37 603 38 603 39 603 40 603 41 603 42 603 43 603 44 6...
result:
ok Found equal strings: 634, 904
Test #37:
score: 0
Accepted
time: 28ms
memory: 3712kb
input:
1000 27 26 26 25 27 32 24 29 25 29 21 23 22 28 28 28 27 18 28 22 22 31 31 28 24 20 25 22 26 29 26 25 23 31 23 24 28 25 24 28 20 23 26 27 19 24 19 25 29 18 29 29 27 25 16 25 23 23 25 26 23 21 25 29 25 26 26 19 23 20 22 24 25 24 27 27 25 29 22 20 31 26 30 25 26 30 24 29 24 27 23 26 25 22 22 32 30 26 2...
output:
967 1 967 2 967 3 967 4 967 5 967 6 967 7 967 8 967 9 967 10 967 11 967 12 967 13 967 14 967 15 967 16 967 17 967 18 967 19 967 20 967 21 967 22 967 23 967 24 967 25 967 26 967 27 967 28 967 29 967 30 967 31 967 32 967 33 967 34 967 35 967 36 967 37 967 38 967 39 967 40 967 41 967 42 967 43 967 44 9...
result:
ok Found equal strings: 693, 778
Test #38:
score: 0
Accepted
time: 33ms
memory: 3840kb
input:
1000 27 24 31 28 20 29 26 29 24 23 23 21 16 25 26 24 25 24 28 24 21 24 28 20 27 23 24 27 27 26 29 30 26 24 30 29 26 26 17 30 21 22 24 20 25 24 27 19 26 26 29 23 21 18 28 27 30 22 24 27 21 21 26 27 32 22 27 31 27 32 21 23 31 28 27 23 21 25 26 31 31 19 24 22 23 24 25 28 21 22 27 24 23 30 24 24 31 22 2...
output:
833 1 833 2 833 3 833 4 833 5 833 6 833 7 833 8 833 9 833 10 833 11 833 12 833 13 833 14 833 15 833 16 833 17 833 18 833 19 833 20 833 21 833 22 833 23 833 24 833 25 833 26 833 27 833 28 833 29 833 30 833 31 833 32 833 33 833 34 833 35 833 36 833 37 833 38 833 39 833 40 833 41 833 42 833 43 833 44 8...
result:
ok Found equal strings: 336, 912
Test #39:
score: 0
Accepted
time: 0ms
memory: 3456kb
input:
2 0
output:
2 1
result:
ok Found equal strings: 2, 1
Extra Test:
score: 0
Extra Test Passed