QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#872541 | #8615. Equal Strings | ucup-team3099# | AC ✓ | 35ms | 4096kb | C++23 | 3.4kb | 2025-01-26 02:18:50 | 2025-01-26 02:18:50 |
Judging History
answer
#include <iostream>
#include <vector>
#include <chrono>
#include <random>
#include <cassert>
#include <map>
std::mt19937 rng((int) std::chrono::steady_clock::now().time_since_epoch().count());
int main() {
std::ios_base::sync_with_stdio(false); std::cin.tie(NULL);
int n;
std::cin >> n;
std::vector<std::vector<int>> values(n);
const int reps = (25000 - 1) / (n - 1);
for(int rep = 0; rep < reps; rep++) {
int i = std::uniform_int_distribution<int>(0, n-1)(rng);
for(int j = 0; j < n; j++) {
if(i == j) {
values[j].push_back(0);
} else {
std::cout << i+1 << ' ' << j+1 << std::endl;
int x;
std::cin >> x;
if(x == 0) {
return 0;
}
values[j].push_back(x);
}
}
}
std::map<std::vector<int>, int> mp;
for(int i = 0; i < n; i++) {
auto it = mp.find(values[i]);
if(it != mp.end()) {
std::cout << it->second+1 << ' ' << i+1 << std::endl;
int x;
std::cin >> x;
assert(x == 0);
break;
}
mp[values[i]] = i;
}
}
/*
NEVER FORGET TO:
Look at the problem's constraints before coding.
How to cheese cf:
Find a lower bound or upper bound for the problem. Have faith that it is the answer of the problem.
If it isn't the answer, have more faith or change to another bound god by looking for a better bound.
Trust guesses. Who has time to think? If people in div2 AC the problem it requires no proof since people don't prove things.
You must draw cases. Thinking gets you nowhere, so draw cases and reach illogical conclusions from them.
Sometimes drawing cases is bad because it takes too much time. Faster is to not think at all and just code a bruteforce solution.
This is called "law of small numbers". If something works for small numbers, surely it works for big numbers.
https://en.wikipedia.org/wiki/Faulty_generalization#Hasty_generalization don't mind the "faulty" part of it, in competitive programming mistakes are lightly punished
Don't think about them being right or not, cf is a battle of intuition only.
Be as stupid as possible in implementation. Trying to be smart is an easy way to get WA.
Think about 2x2 cases for matrix problems and hope that everything works for the general case.
Find a necessary condition and trust it to be sufficient. They're basically the same thing.
Heuristics might speed up your code. Forget about complexity, it's only about ACing and not proving that your solution is good.
For paths in a grid starting at (1, i) or something like that, assume that they never cross and do D&C
Consider doing problems in reverse order of queries/updates
For combinatorics problems, consider symmetry
For problems that are similar to past problems, think about the differences betweem it and the current problem.
Sometimes the difference makes no difference. Sometimes it does.
General strategy (MUST DO):
Try to solve the problem with more restricted constraints.
About testing:
Test n=1, a[i]=1, a[i]=n, etc. Basically, test low values. No need to test if pretests are strong, but if you get WA it's good.
This isn't a joke. Do it if you get stuck. It's shit practice in my opinion, but do it if you want AC.
*/
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3456kb
input:
4 21 0
output:
4 1 4 2
result:
ok Found equal strings: 4, 2
Test #2:
score: 0
Accepted
time: 1ms
memory: 3584kb
input:
4 0
output:
3 1
result:
ok Found equal strings: 3, 1
Test #3:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
10 25 30 27 23 26 28 34 27 23 29 18 27 23 26 30 34 27 29 23 24 24 21 25 29 25 24 28 24 29 0
output:
8 1 8 2 8 3 8 4 8 5 8 6 8 7 8 9 8 10 7 1 7 2 7 3 7 4 7 5 7 6 7 8 7 9 7 10 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 9 1 9 2 9 3
result:
ok Found equal strings: 9, 3
Test #4:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
100 23 22 30 31 28 20 21 26 25 28 29 28 35 19 22 31 26 18 28 23 27 20 22 29 27 33 32 27 26 24 23 27 20 22 22 28 24 26 26 25 26 26 20 27 25 18 26 18 31 25 30 29 23 24 28 29 24 30 22 27 25 26 19 24 31 20 29 24 21 24 25 27 24 35 22 26 27 29 21 27 27 23 26 24 29 23 31 21 23 28 27 26 22 22 25 30 23 22 26...
output:
66 1 66 2 66 3 66 4 66 5 66 6 66 7 66 8 66 9 66 10 66 11 66 12 66 13 66 14 66 15 66 16 66 17 66 18 66 19 66 20 66 21 66 22 66 23 66 24 66 25 66 26 66 27 66 28 66 29 66 30 66 31 66 32 66 33 66 34 66 35 66 36 66 37 66 38 66 39 66 40 66 41 66 42 66 43 66 44 66 45 66 46 66 47 66 48 66 49 66 50 66 51 66 ...
result:
ok Found equal strings: 100, 62
Test #5:
score: 0
Accepted
time: 29ms
memory: 3968kb
input:
500 29 28 23 28 26 25 23 30 23 22 23 25 26 21 24 25 25 26 24 36 20 25 26 23 30 19 27 28 24 23 26 23 29 26 28 24 26 23 29 18 27 21 29 16 28 29 23 25 26 23 22 26 27 25 16 22 26 28 20 24 26 24 29 25 23 21 29 27 28 23 30 22 27 30 32 26 25 30 25 21 21 31 17 23 22 26 21 28 25 26 30 21 24 21 21 18 21 30 23...
output:
79 1 79 2 79 3 79 4 79 5 79 6 79 7 79 8 79 9 79 10 79 11 79 12 79 13 79 14 79 15 79 16 79 17 79 18 79 19 79 20 79 21 79 22 79 23 79 24 79 25 79 26 79 27 79 28 79 29 79 30 79 31 79 32 79 33 79 34 79 35 79 36 79 37 79 38 79 39 79 40 79 41 79 42 79 43 79 44 79 45 79 46 79 47 79 48 79 49 79 50 79 51 79 ...
result:
ok Found equal strings: 100, 334
Test #6:
score: 0
Accepted
time: 19ms
memory: 3840kb
input:
750 27 22 28 24 26 23 20 29 27 22 26 21 28 22 23 29 21 25 23 22 30 23 22 29 26 24 27 23 32 23 25 23 21 22 27 29 14 26 25 22 25 27 22 25 19 27 31 23 21 27 29 24 25 15 27 22 21 24 25 24 24 24 24 27 21 25 21 24 27 25 19 24 21 27 26 24 21 24 29 21 31 20 25 26 22 25 30 21 26 22 18 24 23 31 21 25 21 29 27...
output:
290 1 290 2 290 3 290 4 290 5 290 6 290 7 290 8 290 9 290 10 290 11 290 12 290 13 290 14 290 15 290 16 290 17 290 18 290 19 290 20 290 21 290 22 290 23 290 24 290 25 290 26 290 27 290 28 290 29 290 30 290 31 290 32 290 33 290 34 290 35 290 36 290 37 290 38 290 39 290 40 290 41 290 42 290 43 290 44 2...
result:
ok Found equal strings: 130, 698
Test #7:
score: 0
Accepted
time: 19ms
memory: 3840kb
input:
999 21 28 23 25 21 26 22 21 28 32 23 31 24 25 28 25 22 26 29 27 23 25 20 23 25 21 29 26 21 22 28 25 25 25 27 23 27 21 23 26 26 26 25 20 24 31 27 22 25 26 26 28 27 23 27 20 28 25 27 22 27 29 26 26 25 24 29 21 19 23 27 23 25 27 26 26 19 18 27 20 17 21 30 28 23 24 23 23 27 32 23 20 24 21 25 25 25 20 24...
output:
838 1 838 2 838 3 838 4 838 5 838 6 838 7 838 8 838 9 838 10 838 11 838 12 838 13 838 14 838 15 838 16 838 17 838 18 838 19 838 20 838 21 838 22 838 23 838 24 838 25 838 26 838 27 838 28 838 29 838 30 838 31 838 32 838 33 838 34 838 35 838 36 838 37 838 38 838 39 838 40 838 41 838 42 838 43 838 44 8...
result:
ok Found equal strings: 205, 281
Test #8:
score: 0
Accepted
time: 31ms
memory: 3712kb
input:
1000 23 26 27 29 25 25 22 25 19 19 24 21 24 26 27 26 23 31 22 21 20 19 23 24 26 27 22 26 29 33 22 25 26 27 27 21 27 20 20 22 25 21 24 25 30 25 24 22 22 29 24 24 28 33 24 25 22 28 25 22 30 27 28 30 23 25 20 21 23 28 19 23 24 28 26 25 35 22 30 25 24 21 26 30 24 23 22 26 24 26 29 26 27 22 24 21 27 23 2...
output:
17 1 17 2 17 3 17 4 17 5 17 6 17 7 17 8 17 9 17 10 17 11 17 12 17 13 17 14 17 15 17 16 17 18 17 19 17 20 17 21 17 22 17 23 17 24 17 25 17 26 17 27 17 28 17 29 17 30 17 31 17 32 17 33 17 34 17 35 17 36 17 37 17 38 17 39 17 40 17 41 17 42 17 43 17 44 17 45 17 46 17 47 17 48 17 49 17 50 17 51 17 52 17 ...
result:
ok Found equal strings: 211, 327
Test #9:
score: 0
Accepted
time: 24ms
memory: 3968kb
input:
1000 33 21 26 28 23 20 27 26 30 30 29 20 34 20 19 22 24 32 29 26 30 24 25 15 24 29 21 29 25 32 17 24 27 27 27 22 17 27 23 26 31 24 27 21 19 18 29 25 23 22 24 33 29 25 21 23 34 23 24 25 23 27 29 24 28 26 25 28 23 22 23 21 18 31 21 25 24 25 26 31 25 25 21 26 28 25 29 23 27 32 32 28 23 21 25 20 23 20 3...
output:
460 1 460 2 460 3 460 4 460 5 460 6 460 7 460 8 460 9 460 10 460 11 460 12 460 13 460 14 460 15 460 16 460 17 460 18 460 19 460 20 460 21 460 22 460 23 460 24 460 25 460 26 460 27 460 28 460 29 460 30 460 31 460 32 460 33 460 34 460 35 460 36 460 37 460 38 460 39 460 40 460 41 460 42 460 43 460 44 4...
result:
ok Found equal strings: 220, 448
Test #10:
score: 0
Accepted
time: 28ms
memory: 3968kb
input:
1000 25 28 24 25 21 23 30 25 23 22 21 28 28 30 29 23 28 26 26 27 21 23 26 29 23 27 23 32 25 22 28 26 25 24 26 24 24 28 24 25 27 31 29 24 21 25 28 26 22 19 18 25 24 24 22 30 26 24 25 24 21 20 31 26 22 26 28 28 20 26 31 25 26 25 16 23 28 27 22 20 24 27 26 24 26 19 23 24 27 22 22 17 27 27 29 23 27 26 2...
output:
44 1 44 2 44 3 44 4 44 5 44 6 44 7 44 8 44 9 44 10 44 11 44 12 44 13 44 14 44 15 44 16 44 17 44 18 44 19 44 20 44 21 44 22 44 23 44 24 44 25 44 26 44 27 44 28 44 29 44 30 44 31 44 32 44 33 44 34 44 35 44 36 44 37 44 38 44 39 44 40 44 41 44 42 44 43 44 45 44 46 44 47 44 48 44 49 44 50 44 51 44 52 44 ...
result:
ok Found equal strings: 279, 970
Test #11:
score: 0
Accepted
time: 33ms
memory: 4096kb
input:
1000 23 23 23 31 27 24 21 32 23 26 27 26 24 28 28 21 22 19 25 25 33 19 22 21 24 28 21 19 28 24 29 25 28 27 25 22 21 23 29 31 25 25 31 27 27 24 22 28 27 35 28 28 23 23 24 21 27 28 20 28 29 21 20 20 28 27 25 26 30 30 25 22 27 28 25 25 23 22 22 30 24 26 21 27 23 19 24 25 28 22 22 27 21 28 22 24 30 25 2...
output:
875 1 875 2 875 3 875 4 875 5 875 6 875 7 875 8 875 9 875 10 875 11 875 12 875 13 875 14 875 15 875 16 875 17 875 18 875 19 875 20 875 21 875 22 875 23 875 24 875 25 875 26 875 27 875 28 875 29 875 30 875 31 875 32 875 33 875 34 875 35 875 36 875 37 875 38 875 39 875 40 875 41 875 42 875 43 875 44 8...
result:
ok Found equal strings: 619, 843
Test #12:
score: 0
Accepted
time: 23ms
memory: 3840kb
input:
1000 24 31 25 29 25 27 22 30 21 25 21 33 27 20 20 26 23 28 27 26 28 27 29 24 27 26 24 31 24 29 29 25 28 27 29 25 18 26 31 23 23 23 27 25 24 22 26 26 22 18 24 26 31 30 22 24 33 30 25 22 22 28 21 22 26 20 26 27 26 17 21 22 24 23 23 20 25 26 29 22 29 27 27 25 23 27 28 23 27 30 26 30 23 28 20 25 24 28 3...
output:
407 1 407 2 407 3 407 4 407 5 407 6 407 7 407 8 407 9 407 10 407 11 407 12 407 13 407 14 407 15 407 16 407 17 407 18 407 19 407 20 407 21 407 22 407 23 407 24 407 25 407 26 407 27 407 28 407 29 407 30 407 31 407 32 407 33 407 34 407 35 407 36 407 37 407 38 407 39 407 40 407 41 407 42 407 43 407 44 4...
result:
ok Found equal strings: 678, 717
Test #13:
score: 0
Accepted
time: 28ms
memory: 3968kb
input:
1000 27 24 26 29 28 23 28 30 26 27 26 21 24 21 34 24 22 30 20 26 22 26 21 25 34 26 20 28 20 26 28 30 23 26 26 22 23 26 23 26 27 21 27 24 22 25 25 23 25 29 26 30 27 40 23 28 22 25 24 32 19 22 24 23 24 31 24 24 21 19 26 31 18 23 21 30 27 26 23 29 24 24 31 29 21 29 19 20 24 27 22 25 27 30 28 31 24 29 2...
output:
471 1 471 2 471 3 471 4 471 5 471 6 471 7 471 8 471 9 471 10 471 11 471 12 471 13 471 14 471 15 471 16 471 17 471 18 471 19 471 20 471 21 471 22 471 23 471 24 471 25 471 26 471 27 471 28 471 29 471 30 471 31 471 32 471 33 471 34 471 35 471 36 471 37 471 38 471 39 471 40 471 41 471 42 471 43 471 44 4...
result:
ok Found equal strings: 239, 737
Test #14:
score: 0
Accepted
time: 22ms
memory: 3840kb
input:
1000 25 29 25 32 28 24 23 28 21 25 24 25 27 29 18 27 24 28 15 32 25 26 26 29 26 27 23 25 23 21 28 30 25 31 30 26 28 25 24 24 24 24 21 22 18 24 21 22 24 24 26 25 26 28 25 22 26 21 26 28 26 29 22 25 25 25 26 23 24 18 27 21 24 20 31 27 26 27 23 29 23 23 28 29 24 24 25 23 31 31 28 25 22 28 22 27 27 31 2...
output:
434 1 434 2 434 3 434 4 434 5 434 6 434 7 434 8 434 9 434 10 434 11 434 12 434 13 434 14 434 15 434 16 434 17 434 18 434 19 434 20 434 21 434 22 434 23 434 24 434 25 434 26 434 27 434 28 434 29 434 30 434 31 434 32 434 33 434 34 434 35 434 36 434 37 434 38 434 39 434 40 434 41 434 42 434 43 434 44 4...
result:
ok Found equal strings: 112, 796
Test #15:
score: 0
Accepted
time: 33ms
memory: 3712kb
input:
1000 30 18 25 24 27 29 32 23 31 22 27 24 29 20 24 28 26 24 23 28 31 32 28 26 23 29 26 27 28 22 24 28 18 26 20 23 24 22 29 24 19 32 23 30 23 23 26 24 25 26 26 24 29 25 28 29 21 21 28 24 28 18 23 28 22 23 30 26 29 25 21 28 30 23 28 31 28 23 22 21 21 19 23 25 26 24 27 30 27 26 22 25 25 27 25 23 22 31 2...
output:
217 1 217 2 217 3 217 4 217 5 217 6 217 7 217 8 217 9 217 10 217 11 217 12 217 13 217 14 217 15 217 16 217 17 217 18 217 19 217 20 217 21 217 22 217 23 217 24 217 25 217 26 217 27 217 28 217 29 217 30 217 31 217 32 217 33 217 34 217 35 217 36 217 37 217 38 217 39 217 40 217 41 217 42 217 43 217 44 2...
result:
ok Found equal strings: 634, 855
Test #16:
score: 0
Accepted
time: 30ms
memory: 3712kb
input:
1000 24 25 21 30 24 25 22 27 31 20 20 27 24 30 28 24 29 30 31 25 27 22 25 29 21 28 24 29 23 25 21 24 21 26 23 24 24 29 30 28 30 26 22 28 26 31 25 24 23 26 23 26 21 24 20 24 20 27 24 23 32 24 31 25 29 27 24 27 18 25 23 23 26 20 26 25 20 21 24 25 30 18 26 29 25 26 27 25 24 26 27 28 24 25 25 26 29 27 3...
output:
22 1 22 2 22 3 22 4 22 5 22 6 22 7 22 8 22 9 22 10 22 11 22 12 22 13 22 14 22 15 22 16 22 17 22 18 22 19 22 20 22 21 22 23 22 24 22 25 22 26 22 27 22 28 22 29 22 30 22 31 22 32 22 33 22 34 22 35 22 36 22 37 22 38 22 39 22 40 22 41 22 42 22 43 22 44 22 45 22 46 22 47 22 48 22 49 22 50 22 51 22 52 22 ...
result:
ok Found equal strings: 196, 508
Test #17:
score: 0
Accepted
time: 22ms
memory: 3968kb
input:
1000 23 27 24 27 26 26 28 30 27 24 27 27 26 30 25 36 23 29 20 22 28 22 21 27 15 20 26 23 27 22 26 24 23 32 25 26 23 23 19 26 23 26 21 23 25 25 29 27 24 32 31 28 26 25 22 26 30 27 26 23 19 26 27 32 31 32 22 29 23 23 22 24 27 19 25 25 23 21 29 24 20 22 24 24 27 27 25 29 27 28 27 27 21 34 31 30 22 25 2...
output:
775 1 775 2 775 3 775 4 775 5 775 6 775 7 775 8 775 9 775 10 775 11 775 12 775 13 775 14 775 15 775 16 775 17 775 18 775 19 775 20 775 21 775 22 775 23 775 24 775 25 775 26 775 27 775 28 775 29 775 30 775 31 775 32 775 33 775 34 775 35 775 36 775 37 775 38 775 39 775 40 775 41 775 42 775 43 775 44 7...
result:
ok Found equal strings: 30, 255
Test #18:
score: 0
Accepted
time: 31ms
memory: 3840kb
input:
1000 23 25 24 24 25 31 25 27 27 26 25 21 31 21 23 22 27 31 24 30 19 21 23 26 26 29 29 30 25 26 29 21 32 23 28 19 26 25 20 24 25 26 23 22 29 26 23 33 26 23 26 18 23 28 23 26 24 24 28 21 22 24 22 29 23 26 26 25 28 26 27 26 29 20 25 23 21 26 32 27 22 25 24 23 21 29 28 31 22 22 27 32 24 25 21 29 26 17 2...
output:
36 1 36 2 36 3 36 4 36 5 36 6 36 7 36 8 36 9 36 10 36 11 36 12 36 13 36 14 36 15 36 16 36 17 36 18 36 19 36 20 36 21 36 22 36 23 36 24 36 25 36 26 36 27 36 28 36 29 36 30 36 31 36 32 36 33 36 34 36 35 36 37 36 38 36 39 36 40 36 41 36 42 36 43 36 44 36 45 36 46 36 47 36 48 36 49 36 50 36 51 36 52 36 ...
result:
ok Found equal strings: 284, 957
Test #19:
score: 0
Accepted
time: 19ms
memory: 3712kb
input:
1000 32 26 23 32 25 26 28 27 24 28 28 24 22 25 21 25 22 31 25 23 27 26 24 22 29 29 20 26 20 25 31 20 22 26 25 16 26 25 27 23 24 30 25 27 20 25 24 27 24 26 23 23 28 22 30 26 23 25 23 28 27 35 26 26 25 24 24 24 24 27 29 29 22 28 21 23 22 27 21 28 23 24 19 28 28 24 18 20 26 29 31 26 18 22 18 26 32 27 2...
output:
891 1 891 2 891 3 891 4 891 5 891 6 891 7 891 8 891 9 891 10 891 11 891 12 891 13 891 14 891 15 891 16 891 17 891 18 891 19 891 20 891 21 891 22 891 23 891 24 891 25 891 26 891 27 891 28 891 29 891 30 891 31 891 32 891 33 891 34 891 35 891 36 891 37 891 38 891 39 891 40 891 41 891 42 891 43 891 44 8...
result:
ok Found equal strings: 343, 478
Test #20:
score: 0
Accepted
time: 20ms
memory: 3840kb
input:
1000 28 23 30 23 27 22 21 23 22 20 26 29 20 23 22 23 24 26 25 26 30 29 31 22 27 26 24 28 22 24 24 28 28 22 24 21 19 21 23 34 32 25 29 26 25 26 19 25 25 28 23 25 26 20 28 21 24 24 22 25 29 19 25 31 25 26 25 24 21 21 23 28 22 24 25 24 27 25 26 25 22 21 22 28 29 35 18 27 27 19 20 28 29 22 31 22 29 31 2...
output:
809 1 809 2 809 3 809 4 809 5 809 6 809 7 809 8 809 9 809 10 809 11 809 12 809 13 809 14 809 15 809 16 809 17 809 18 809 19 809 20 809 21 809 22 809 23 809 24 809 25 809 26 809 27 809 28 809 29 809 30 809 31 809 32 809 33 809 34 809 35 809 36 809 37 809 38 809 39 809 40 809 41 809 42 809 43 809 44 8...
result:
ok Found equal strings: 352, 402
Test #21:
score: 0
Accepted
time: 19ms
memory: 3968kb
input:
1000 19 24 23 29 25 25 28 22 23 20 30 26 26 25 22 27 26 28 24 28 25 23 21 20 25 26 27 22 25 27 26 22 25 20 27 27 23 23 26 21 19 26 23 21 35 26 18 32 23 27 19 27 30 26 23 26 23 26 24 22 26 26 25 24 31 20 29 27 17 28 29 18 22 27 20 22 23 21 26 21 24 23 28 23 22 27 25 27 25 21 28 27 21 25 33 17 27 23 1...
output:
617 1 617 2 617 3 617 4 617 5 617 6 617 7 617 8 617 9 617 10 617 11 617 12 617 13 617 14 617 15 617 16 617 17 617 18 617 19 617 20 617 21 617 22 617 23 617 24 617 25 617 26 617 27 617 28 617 29 617 30 617 31 617 32 617 33 617 34 617 35 617 36 617 37 617 38 617 39 617 40 617 41 617 42 617 43 617 44 6...
result:
ok Found equal strings: 462, 874
Test #22:
score: 0
Accepted
time: 35ms
memory: 3968kb
input:
1000 18 27 28 28 23 30 26 23 28 26 24 27 27 23 31 27 23 29 30 23 24 21 28 20 23 29 25 24 20 23 27 26 26 26 27 20 29 33 26 28 25 28 26 21 26 28 27 22 24 26 19 27 24 26 23 29 31 26 27 22 21 25 26 27 29 26 24 21 22 27 25 30 27 25 29 25 22 24 20 26 23 26 32 27 26 18 24 32 22 29 30 25 29 20 20 20 28 26 2...
output:
832 1 832 2 832 3 832 4 832 5 832 6 832 7 832 8 832 9 832 10 832 11 832 12 832 13 832 14 832 15 832 16 832 17 832 18 832 19 832 20 832 21 832 22 832 23 832 24 832 25 832 26 832 27 832 28 832 29 832 30 832 31 832 32 832 33 832 34 832 35 832 36 832 37 832 38 832 39 832 40 832 41 832 42 832 43 832 44 8...
result:
ok Found equal strings: 521, 747
Test #23:
score: 0
Accepted
time: 32ms
memory: 3840kb
input:
1000 19 29 27 24 20 24 25 28 28 21 25 21 34 27 24 25 25 23 22 25 26 23 19 26 18 22 23 25 23 24 20 26 26 20 23 21 24 27 24 24 26 28 25 28 18 26 27 24 24 24 22 25 18 29 23 21 30 18 21 27 16 22 23 29 24 27 28 29 28 24 26 28 20 28 28 20 25 28 24 24 23 25 22 28 22 24 25 25 25 25 27 27 29 28 30 22 25 20 2...
output:
704 1 704 2 704 3 704 4 704 5 704 6 704 7 704 8 704 9 704 10 704 11 704 12 704 13 704 14 704 15 704 16 704 17 704 18 704 19 704 20 704 21 704 22 704 23 704 24 704 25 704 26 704 27 704 28 704 29 704 30 704 31 704 32 704 33 704 34 704 35 704 36 704 37 704 38 704 39 704 40 704 41 704 42 704 43 704 44 7...
result:
ok Found equal strings: 621, 861
Test #24:
score: 0
Accepted
time: 24ms
memory: 4096kb
input:
1000 24 23 23 28 29 29 23 18 23 25 25 29 24 18 27 28 25 27 30 27 20 24 32 25 25 27 23 24 24 30 26 30 22 26 26 26 19 27 23 23 27 24 31 26 22 23 22 31 27 29 17 25 25 27 22 20 26 27 27 21 20 21 22 25 20 21 24 23 29 25 28 25 19 26 21 28 22 25 34 23 23 30 23 25 25 17 23 24 27 19 29 22 25 21 23 26 33 28 2...
output:
949 1 949 2 949 3 949 4 949 5 949 6 949 7 949 8 949 9 949 10 949 11 949 12 949 13 949 14 949 15 949 16 949 17 949 18 949 19 949 20 949 21 949 22 949 23 949 24 949 25 949 26 949 27 949 28 949 29 949 30 949 31 949 32 949 33 949 34 949 35 949 36 949 37 949 38 949 39 949 40 949 41 949 42 949 43 949 44 9...
result:
ok Found equal strings: 143, 920
Test #25:
score: 0
Accepted
time: 29ms
memory: 3968kb
input:
1000 22 22 24 31 31 25 24 25 23 18 25 28 16 30 27 24 34 27 28 24 30 20 23 27 25 26 24 22 26 30 27 25 22 28 26 22 27 26 28 21 34 28 29 27 26 17 31 28 30 25 28 28 21 26 29 31 22 28 26 20 22 27 22 30 29 29 27 30 27 22 25 24 23 21 22 24 28 30 24 27 22 26 23 28 30 23 25 24 18 25 22 26 26 24 26 24 27 24 2...
output:
932 1 932 2 932 3 932 4 932 5 932 6 932 7 932 8 932 9 932 10 932 11 932 12 932 13 932 14 932 15 932 16 932 17 932 18 932 19 932 20 932 21 932 22 932 23 932 24 932 25 932 26 932 27 932 28 932 29 932 30 932 31 932 32 932 33 932 34 932 35 932 36 932 37 932 38 932 39 932 40 932 41 932 42 932 43 932 44 9...
result:
ok Found equal strings: 17, 979
Test #26:
score: 0
Accepted
time: 34ms
memory: 3968kb
input:
1000 18 27 25 24 22 25 20 18 25 21 25 23 25 24 26 26 24 25 15 26 26 27 24 21 18 27 26 24 23 25 24 28 27 28 26 22 21 27 27 26 19 29 30 22 35 21 30 20 25 23 26 17 24 21 25 21 27 26 18 31 23 31 23 28 25 20 30 25 21 25 33 24 30 18 24 30 32 22 32 24 23 24 27 28 21 22 19 22 26 25 21 19 26 26 25 21 25 23 2...
output:
477 1 477 2 477 3 477 4 477 5 477 6 477 7 477 8 477 9 477 10 477 11 477 12 477 13 477 14 477 15 477 16 477 17 477 18 477 19 477 20 477 21 477 22 477 23 477 24 477 25 477 26 477 27 477 28 477 29 477 30 477 31 477 32 477 33 477 34 477 35 477 36 477 37 477 38 477 39 477 40 477 41 477 42 477 43 477 44 4...
result:
ok Found equal strings: 39, 538
Test #27:
score: 0
Accepted
time: 31ms
memory: 3712kb
input:
1000 28 24 27 25 17 24 26 25 24 31 31 25 27 25 26 25 23 22 22 25 28 25 27 30 24 28 29 24 27 23 26 25 26 25 25 23 30 25 29 27 25 22 20 22 34 28 25 27 29 23 26 20 20 23 29 28 25 24 24 25 25 20 17 24 26 17 21 26 31 23 30 28 29 27 29 27 23 19 23 30 21 26 22 28 28 31 27 27 23 23 20 31 29 18 26 26 25 26 2...
output:
520 1 520 2 520 3 520 4 520 5 520 6 520 7 520 8 520 9 520 10 520 11 520 12 520 13 520 14 520 15 520 16 520 17 520 18 520 19 520 20 520 21 520 22 520 23 520 24 520 25 520 26 520 27 520 28 520 29 520 30 520 31 520 32 520 33 520 34 520 35 520 36 520 37 520 38 520 39 520 40 520 41 520 42 520 43 520 44 5...
result:
ok Found equal strings: 98, 412
Test #28:
score: 0
Accepted
time: 22ms
memory: 3840kb
input:
1000 30 26 30 22 26 22 21 23 26 25 30 26 23 21 23 19 26 30 28 30 24 13 24 18 21 31 22 26 28 24 23 21 26 23 20 28 28 31 19 23 25 19 22 21 25 26 22 32 23 23 24 25 29 25 24 28 27 27 27 24 21 28 22 26 23 26 21 24 27 28 25 31 20 22 24 27 26 29 26 25 25 24 23 29 28 24 29 19 27 22 25 29 28 21 25 22 21 22 2...
output:
656 1 656 2 656 3 656 4 656 5 656 6 656 7 656 8 656 9 656 10 656 11 656 12 656 13 656 14 656 15 656 16 656 17 656 18 656 19 656 20 656 21 656 22 656 23 656 24 656 25 656 26 656 27 656 28 656 29 656 30 656 31 656 32 656 33 656 34 656 35 656 36 656 37 656 38 656 39 656 40 656 41 656 42 656 43 656 44 6...
result:
ok Found equal strings: 598, 970
Test #29:
score: 0
Accepted
time: 24ms
memory: 3968kb
input:
1000 26 26 25 25 22 20 28 27 22 25 30 23 18 29 28 25 24 21 24 27 24 24 31 28 20 19 29 20 25 23 19 20 24 26 23 27 21 29 24 22 27 24 20 23 29 31 24 26 23 23 25 23 27 26 30 15 23 24 27 24 23 25 24 28 29 29 27 25 20 25 29 23 25 26 25 23 21 28 26 25 30 24 27 22 31 25 25 19 29 28 19 30 22 19 27 31 24 30 2...
output:
653 1 653 2 653 3 653 4 653 5 653 6 653 7 653 8 653 9 653 10 653 11 653 12 653 13 653 14 653 15 653 16 653 17 653 18 653 19 653 20 653 21 653 22 653 23 653 24 653 25 653 26 653 27 653 28 653 29 653 30 653 31 653 32 653 33 653 34 653 35 653 36 653 37 653 38 653 39 653 40 653 41 653 42 653 43 653 44 6...
result:
ok Found equal strings: 657, 844
Test #30:
score: 0
Accepted
time: 25ms
memory: 3968kb
input:
1000 25 23 22 28 26 24 24 23 28 21 22 23 25 25 32 19 23 28 24 25 31 24 30 25 28 26 27 20 22 27 31 31 29 23 22 31 27 21 26 25 23 28 31 25 30 20 23 19 21 17 28 27 23 24 18 21 24 31 23 22 27 20 21 24 19 21 26 21 26 29 24 26 20 21 29 31 24 23 26 21 20 25 23 21 27 27 22 29 34 22 23 26 23 24 28 27 30 27 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: 716, 718
Test #31:
score: 0
Accepted
time: 22ms
memory: 3712kb
input:
1000 26 24 29 31 22 32 27 28 26 23 29 26 27 27 22 29 21 23 34 23 27 21 30 29 23 26 20 29 23 24 35 20 30 21 23 24 33 32 22 25 31 29 26 28 19 23 28 30 26 29 29 24 25 24 24 18 25 22 24 27 21 32 24 24 22 25 18 23 27 27 30 29 18 31 26 20 25 23 16 26 28 20 21 27 25 25 25 21 28 28 24 31 22 24 29 24 28 27 2...
output:
295 1 295 2 295 3 295 4 295 5 295 6 295 7 295 8 295 9 295 10 295 11 295 12 295 13 295 14 295 15 295 16 295 17 295 18 295 19 295 20 295 21 295 22 295 23 295 24 295 25 295 26 295 27 295 28 295 29 295 30 295 31 295 32 295 33 295 34 295 35 295 36 295 37 295 38 295 39 295 40 295 41 295 42 295 43 295 44 2...
result:
ok Found equal strings: 57, 240
Test #32:
score: 0
Accepted
time: 34ms
memory: 3712kb
input:
1000 22 29 26 27 13 28 21 26 26 24 27 28 29 23 24 28 25 22 23 19 22 31 27 24 30 27 24 27 18 24 27 28 30 26 21 26 27 27 22 22 26 24 24 28 28 29 27 21 30 24 30 24 25 26 22 26 28 27 24 23 30 23 24 34 20 25 28 23 24 21 25 24 26 25 21 22 26 31 26 34 24 24 30 23 31 29 30 23 25 24 29 24 25 28 23 21 27 24 2...
output:
452 1 452 2 452 3 452 4 452 5 452 6 452 7 452 8 452 9 452 10 452 11 452 12 452 13 452 14 452 15 452 16 452 17 452 18 452 19 452 20 452 21 452 22 452 23 452 24 452 25 452 26 452 27 452 28 452 29 452 30 452 31 452 32 452 33 452 34 452 35 452 36 452 37 452 38 452 39 452 40 452 41 452 42 452 43 452 44 4...
result:
ok Found equal strings: 113, 116
Test #33:
score: 0
Accepted
time: 15ms
memory: 3968kb
input:
1000 28 20 18 22 27 19 26 26 23 30 23 27 24 21 27 20 29 25 25 28 19 32 27 26 33 22 22 19 30 23 24 22 20 20 29 28 23 30 21 21 28 16 26 24 26 25 25 19 23 28 24 21 26 26 20 24 30 27 22 27 21 26 27 27 25 25 21 25 19 31 25 25 24 21 23 22 29 23 27 22 25 22 23 28 22 25 23 21 22 30 28 19 24 24 19 24 27 23 2...
output:
281 1 281 2 281 3 281 4 281 5 281 6 281 7 281 8 281 9 281 10 281 11 281 12 281 13 281 14 281 15 281 16 281 17 281 18 281 19 281 20 281 21 281 22 281 23 281 24 281 25 281 26 281 27 281 28 281 29 281 30 281 31 281 32 281 33 281 34 281 35 281 36 281 37 281 38 281 39 281 40 281 41 281 42 281 43 281 44 2...
result:
ok Found equal strings: 635, 175
Test #34:
score: 0
Accepted
time: 19ms
memory: 3712kb
input:
1000 33 26 28 37 22 32 20 23 22 21 27 23 24 27 18 28 19 25 22 27 18 25 19 21 36 22 21 29 27 25 23 30 29 29 23 25 23 31 23 28 28 21 19 25 32 29 28 28 23 26 29 24 27 23 30 25 26 29 28 18 23 29 26 30 23 29 25 20 25 23 20 24 37 22 23 22 28 28 23 30 31 23 26 23 19 16 21 23 29 29 30 23 35 29 28 28 19 28 2...
output:
550 1 550 2 550 3 550 4 550 5 550 6 550 7 550 8 550 9 550 10 550 11 550 12 550 13 550 14 550 15 550 16 550 17 550 18 550 19 550 20 550 21 550 22 550 23 550 24 550 25 550 26 550 27 550 28 550 29 550 30 550 31 550 32 550 33 550 34 550 35 550 36 550 37 550 38 550 39 550 40 550 41 550 42 550 43 550 44 5...
result:
ok Found equal strings: 235, 509
Test #35:
score: 0
Accepted
time: 29ms
memory: 3840kb
input:
1000 27 26 18 26 24 19 26 25 22 27 19 23 26 26 24 25 23 20 24 27 20 30 23 16 25 22 33 22 28 26 25 20 23 20 26 31 22 21 25 25 27 27 20 22 20 30 28 31 22 24 20 30 26 25 27 26 24 26 28 23 24 26 27 25 23 25 27 19 18 30 22 28 27 27 25 20 22 22 30 27 32 25 28 30 25 29 28 28 29 29 25 25 21 26 24 31 23 30 2...
output:
59 1 59 2 59 3 59 4 59 5 59 6 59 7 59 8 59 9 59 10 59 11 59 12 59 13 59 14 59 15 59 16 59 17 59 18 59 19 59 20 59 21 59 22 59 23 59 24 59 25 59 26 59 27 59 28 59 29 59 30 59 31 59 32 59 33 59 34 59 35 59 36 59 37 59 38 59 39 59 40 59 41 59 42 59 43 59 44 59 45 59 46 59 47 59 48 59 49 59 50 59 51 59 ...
result:
ok Found equal strings: 30, 294
Test #36:
score: 0
Accepted
time: 26ms
memory: 3840kb
input:
1000 29 27 20 26 26 24 21 24 29 16 25 26 21 26 28 17 21 20 23 26 24 28 25 30 22 27 22 18 27 29 25 27 23 26 31 26 27 20 28 24 33 26 28 21 31 27 27 23 27 20 31 22 23 30 30 31 24 28 22 23 25 25 22 21 25 24 25 28 27 15 27 22 28 25 21 25 24 26 20 20 28 24 25 21 27 20 24 24 25 26 28 24 27 22 21 27 25 24 2...
output:
928 1 928 2 928 3 928 4 928 5 928 6 928 7 928 8 928 9 928 10 928 11 928 12 928 13 928 14 928 15 928 16 928 17 928 18 928 19 928 20 928 21 928 22 928 23 928 24 928 25 928 26 928 27 928 28 928 29 928 30 928 31 928 32 928 33 928 34 928 35 928 36 928 37 928 38 928 39 928 40 928 41 928 42 928 43 928 44 9...
result:
ok Found equal strings: 634, 904
Test #37:
score: 0
Accepted
time: 26ms
memory: 4096kb
input:
1000 18 27 23 26 26 19 29 26 22 18 32 25 29 25 17 30 27 21 33 19 20 26 27 27 23 20 23 27 22 25 26 20 26 28 27 25 26 23 23 29 28 23 24 24 27 28 20 26 29 24 20 26 24 21 22 24 22 24 29 24 30 26 26 22 31 23 22 24 27 25 25 20 21 26 22 22 22 27 21 24 21 27 18 21 19 21 26 23 22 22 29 18 27 27 29 21 29 22 2...
output:
8 1 8 2 8 3 8 4 8 5 8 6 8 7 8 9 8 10 8 11 8 12 8 13 8 14 8 15 8 16 8 17 8 18 8 19 8 20 8 21 8 22 8 23 8 24 8 25 8 26 8 27 8 28 8 29 8 30 8 31 8 32 8 33 8 34 8 35 8 36 8 37 8 38 8 39 8 40 8 41 8 42 8 43 8 44 8 45 8 46 8 47 8 48 8 49 8 50 8 51 8 52 8 53 8 54 8 55 8 56 8 57 8 58 8 59 8 60 8 61 8 62 8 6...
result:
ok Found equal strings: 693, 778
Test #38:
score: 0
Accepted
time: 35ms
memory: 3840kb
input:
1000 26 31 24 31 25 26 29 24 29 26 26 20 27 28 23 25 16 25 27 23 22 21 17 25 30 28 21 26 26 25 28 27 29 27 19 20 31 17 28 25 26 27 27 27 22 25 18 26 25 31 24 30 22 25 19 28 21 27 25 20 24 30 29 30 25 29 22 28 26 17 30 18 26 25 26 28 26 30 23 22 28 22 27 29 18 25 28 21 28 31 26 21 26 29 29 29 24 25 2...
output:
977 1 977 2 977 3 977 4 977 5 977 6 977 7 977 8 977 9 977 10 977 11 977 12 977 13 977 14 977 15 977 16 977 17 977 18 977 19 977 20 977 21 977 22 977 23 977 24 977 25 977 26 977 27 977 28 977 29 977 30 977 31 977 32 977 33 977 34 977 35 977 36 977 37 977 38 977 39 977 40 977 41 977 42 977 43 977 44 9...
result:
ok Found equal strings: 336, 912
Test #39:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
2 0
output:
2 1
result:
ok Found equal strings: 2, 1
Extra Test:
score: 0
Extra Test Passed