Submission #114354

# Submission time Handle Problem Language Result Execution time Memory
114354 2019-06-01T04:28:02 Z sebinkim Lock Puzzle (innopolis2018_final_A) C++14
100 / 100
9 ms 640 KB
#include <bits/stdc++.h>

using namespace std;

char A[2020], B[2020];
int D[2020], E[2020];
vector <int> V;
int n, m;

void shift(int p)
{
	reverse(A, A + n);
	reverse(A + p, A + n);
	V.push_back(p);
}

int main()
{
	int i, j;
	
	scanf("%d%d", &n, &m);
	scanf("%s%s", A, B);
	
	if(n & 1){
		D[0] = 0;
		for(i=1; i<n; i+=2){
			reverse(D, D + i);
			for(j=i; j>=1; j--) D[j] = D[j - 1];
			D[i + 1] = i; D[0] = i + 1;
		}
		
		for(i=0; i<n; i++){
			E[D[i]] = i;
		}
		
		for(i=0; i<n; i++){
			if(A[i] == B[E[0]]) break;
		}
		
		shift(n - i - 1);
		
		for(i=1; i<n; i+=2){
			for(j=0; j<n-i; j++){
				if(A[j] == B[E[i]]) break;
			}
			
			shift(n - j - 1); shift(n); shift(i);
			
			for(j=i+1; j<n; j++){
				if(A[j] == B[E[i + 1]]) break;
			}
			
			shift(n - j); shift(j - i - 1);
		}
	}
	else{
		for(i=0; i<n; i+=2){
			reverse(D, D + i);
			for(j=i; j>=1; j--) D[j] = D[j - 1];
			D[i + 1] = i; D[0] = i + 1;
		}
		
		for(i=0; i<n; i++){
			E[D[i]] = i;
		}
		
		for(i=0; i<n; i+=2){
			for(j=0; j<n-i; j++){
				if(A[j] == B[E[i]]) break;
			}
			
			shift(n - j - 1); shift(n); shift(i);
			
			for(j=i+1; j<n; j++){
				if(A[j] == B[E[i + 1]]) break;
			}
			
			shift(n - j); shift(j - i - 1);
		}
	}
	
	for(i=0; i<n; i++){
		if(A[i] != B[i]) break;
	}
	
	if(i < n){
		printf("-1\n");
	}
	else{
		printf("%d\n", V.size());
		for(int &t: V) printf("%d ", t);
		printf("\n");
	}
	
	return 0;
}

Compilation message

A.cpp: In function 'int main()':
A.cpp:90:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
   printf("%d\n", V.size());
                  ~~~~~~~~^
A.cpp:21:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d", &n, &m);
  ~~~~~^~~~~~~~~~~~~~~~
A.cpp:22:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%s%s", A, B);
  ~~~~~^~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB [n = 1, m = 10000], OK, 1 operations
2 Correct 2 ms 256 KB [n = 2, m = 10000], OK, 5 operations
3 Correct 3 ms 384 KB [n = 8, m = 10000], OK, 20 operations
4 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
5 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
6 Correct 2 ms 256 KB [n = 8, m = 10000], OK: No solution
7 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
8 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB [n = 1, m = 10000], OK, 1 operations
2 Correct 2 ms 256 KB [n = 2, m = 10000], OK, 5 operations
3 Correct 3 ms 384 KB [n = 8, m = 10000], OK, 20 operations
4 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
5 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
6 Correct 2 ms 256 KB [n = 8, m = 10000], OK: No solution
7 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
8 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
9 Correct 2 ms 256 KB [n = 49, m = 10000], OK, 121 operations
10 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
11 Correct 2 ms 384 KB [n = 100, m = 10000], OK, 250 operations
12 Correct 3 ms 384 KB [n = 99, m = 10000], OK, 246 operations
13 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
14 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
15 Correct 2 ms 384 KB [n = 50, m = 10000], OK: No solution
16 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
17 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB [n = 1, m = 10000], OK, 1 operations
2 Correct 2 ms 256 KB [n = 2, m = 10000], OK, 5 operations
3 Correct 3 ms 384 KB [n = 8, m = 10000], OK, 20 operations
4 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
5 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
6 Correct 2 ms 256 KB [n = 8, m = 10000], OK: No solution
7 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
8 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
9 Correct 2 ms 256 KB [n = 49, m = 10000], OK, 121 operations
10 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
11 Correct 2 ms 384 KB [n = 100, m = 10000], OK, 250 operations
12 Correct 3 ms 384 KB [n = 99, m = 10000], OK, 246 operations
13 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
14 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
15 Correct 2 ms 384 KB [n = 50, m = 10000], OK: No solution
16 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
17 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
18 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
19 Correct 4 ms 384 KB [n = 999, m = 10000], OK, 2496 operations
20 Correct 4 ms 384 KB [n = 998, m = 10000], OK, 2495 operations
21 Correct 4 ms 384 KB [n = 997, m = 10000], OK, 2491 operations
22 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
23 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
24 Correct 4 ms 384 KB [n = 1000, m = 10000], OK: No solution
25 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
26 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB [n = 1, m = 10000], OK, 1 operations
2 Correct 2 ms 256 KB [n = 2, m = 10000], OK, 5 operations
3 Correct 3 ms 384 KB [n = 8, m = 10000], OK, 20 operations
4 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
5 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
6 Correct 2 ms 256 KB [n = 8, m = 10000], OK: No solution
7 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
8 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
9 Correct 2 ms 256 KB [n = 49, m = 10000], OK, 121 operations
10 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
11 Correct 2 ms 384 KB [n = 100, m = 10000], OK, 250 operations
12 Correct 3 ms 384 KB [n = 99, m = 10000], OK, 246 operations
13 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
14 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
15 Correct 2 ms 384 KB [n = 50, m = 10000], OK: No solution
16 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
17 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
18 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
19 Correct 4 ms 384 KB [n = 999, m = 10000], OK, 2496 operations
20 Correct 4 ms 384 KB [n = 998, m = 10000], OK, 2495 operations
21 Correct 4 ms 384 KB [n = 997, m = 10000], OK, 2491 operations
22 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
23 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
24 Correct 4 ms 384 KB [n = 1000, m = 10000], OK: No solution
25 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
26 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
27 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
28 Correct 8 ms 384 KB [n = 1999, m = 10000], OK, 4996 operations
29 Correct 9 ms 384 KB [n = 1998, m = 10000], OK, 4995 operations
30 Correct 9 ms 384 KB [n = 1997, m = 10000], OK, 4991 operations
31 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
32 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
33 Correct 8 ms 384 KB [n = 2000, m = 10000], OK: No solution
34 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
35 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB [n = 1, m = 10000], OK, 1 operations
2 Correct 2 ms 256 KB [n = 2, m = 10000], OK, 5 operations
3 Correct 3 ms 384 KB [n = 8, m = 10000], OK, 20 operations
4 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
5 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
6 Correct 2 ms 256 KB [n = 8, m = 10000], OK: No solution
7 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
8 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
9 Correct 2 ms 256 KB [n = 49, m = 10000], OK, 121 operations
10 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
11 Correct 2 ms 384 KB [n = 100, m = 10000], OK, 250 operations
12 Correct 3 ms 384 KB [n = 99, m = 10000], OK, 246 operations
13 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
14 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
15 Correct 2 ms 384 KB [n = 50, m = 10000], OK: No solution
16 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
17 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
18 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
19 Correct 4 ms 384 KB [n = 999, m = 10000], OK, 2496 operations
20 Correct 4 ms 384 KB [n = 998, m = 10000], OK, 2495 operations
21 Correct 4 ms 384 KB [n = 997, m = 10000], OK, 2491 operations
22 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
23 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
24 Correct 4 ms 384 KB [n = 1000, m = 10000], OK: No solution
25 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
26 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
27 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
28 Correct 8 ms 384 KB [n = 1999, m = 10000], OK, 4996 operations
29 Correct 9 ms 384 KB [n = 1998, m = 10000], OK, 4995 operations
30 Correct 9 ms 384 KB [n = 1997, m = 10000], OK, 4991 operations
31 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
32 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
33 Correct 8 ms 384 KB [n = 2000, m = 10000], OK: No solution
34 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
35 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
36 Correct 9 ms 384 KB [n = 2000, m = 8100], OK, 5000 operations
37 Correct 9 ms 384 KB [n = 1999, m = 8100], OK, 4996 operations
38 Correct 9 ms 384 KB [n = 1998, m = 8100], OK, 4995 operations
39 Correct 9 ms 384 KB [n = 1997, m = 8100], OK, 4991 operations
40 Correct 9 ms 384 KB [n = 1996, m = 8100], OK, 4990 operations
41 Correct 9 ms 384 KB [n = 2000, m = 8100], OK, 5000 operations
42 Correct 9 ms 384 KB [n = 2000, m = 8100], OK, 5000 operations
43 Correct 8 ms 384 KB [n = 2000, m = 8100], OK: No solution
44 Correct 9 ms 384 KB [n = 2000, m = 8100], OK, 5000 operations
45 Correct 9 ms 384 KB [n = 2000, m = 8100], OK, 5000 operations
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB [n = 1, m = 10000], OK, 1 operations
2 Correct 2 ms 256 KB [n = 2, m = 10000], OK, 5 operations
3 Correct 3 ms 384 KB [n = 8, m = 10000], OK, 20 operations
4 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
5 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
6 Correct 2 ms 256 KB [n = 8, m = 10000], OK: No solution
7 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
8 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
9 Correct 2 ms 256 KB [n = 49, m = 10000], OK, 121 operations
10 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
11 Correct 2 ms 384 KB [n = 100, m = 10000], OK, 250 operations
12 Correct 3 ms 384 KB [n = 99, m = 10000], OK, 246 operations
13 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
14 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
15 Correct 2 ms 384 KB [n = 50, m = 10000], OK: No solution
16 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
17 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
18 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
19 Correct 4 ms 384 KB [n = 999, m = 10000], OK, 2496 operations
20 Correct 4 ms 384 KB [n = 998, m = 10000], OK, 2495 operations
21 Correct 4 ms 384 KB [n = 997, m = 10000], OK, 2491 operations
22 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
23 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
24 Correct 4 ms 384 KB [n = 1000, m = 10000], OK: No solution
25 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
26 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
27 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
28 Correct 8 ms 384 KB [n = 1999, m = 10000], OK, 4996 operations
29 Correct 9 ms 384 KB [n = 1998, m = 10000], OK, 4995 operations
30 Correct 9 ms 384 KB [n = 1997, m = 10000], OK, 4991 operations
31 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
32 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
33 Correct 8 ms 384 KB [n = 2000, m = 10000], OK: No solution
34 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
35 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
36 Correct 9 ms 384 KB [n = 2000, m = 8100], OK, 5000 operations
37 Correct 9 ms 384 KB [n = 1999, m = 8100], OK, 4996 operations
38 Correct 9 ms 384 KB [n = 1998, m = 8100], OK, 4995 operations
39 Correct 9 ms 384 KB [n = 1997, m = 8100], OK, 4991 operations
40 Correct 9 ms 384 KB [n = 1996, m = 8100], OK, 4990 operations
41 Correct 9 ms 384 KB [n = 2000, m = 8100], OK, 5000 operations
42 Correct 9 ms 384 KB [n = 2000, m = 8100], OK, 5000 operations
43 Correct 8 ms 384 KB [n = 2000, m = 8100], OK: No solution
44 Correct 9 ms 384 KB [n = 2000, m = 8100], OK, 5000 operations
45 Correct 9 ms 384 KB [n = 2000, m = 8100], OK, 5000 operations
46 Correct 8 ms 384 KB [n = 2000, m = 6100], OK, 5000 operations
47 Correct 9 ms 384 KB [n = 1999, m = 6100], OK, 4996 operations
48 Correct 8 ms 384 KB [n = 1998, m = 6100], OK, 4995 operations
49 Correct 9 ms 384 KB [n = 1997, m = 6100], OK, 4991 operations
50 Correct 8 ms 384 KB [n = 1996, m = 6100], OK, 4990 operations
51 Correct 8 ms 384 KB [n = 2000, m = 6100], OK, 5000 operations
52 Correct 8 ms 384 KB [n = 2000, m = 6100], OK, 5000 operations
53 Correct 8 ms 384 KB [n = 2000, m = 6100], OK: No solution
54 Correct 8 ms 384 KB [n = 2000, m = 6100], OK, 5000 operations
55 Correct 9 ms 384 KB [n = 2000, m = 6100], OK, 5000 operations
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB [n = 1, m = 10000], OK, 1 operations
2 Correct 2 ms 256 KB [n = 2, m = 10000], OK, 5 operations
3 Correct 3 ms 384 KB [n = 8, m = 10000], OK, 20 operations
4 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
5 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
6 Correct 2 ms 256 KB [n = 8, m = 10000], OK: No solution
7 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
8 Correct 2 ms 384 KB [n = 8, m = 10000], OK, 20 operations
9 Correct 2 ms 256 KB [n = 49, m = 10000], OK, 121 operations
10 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
11 Correct 2 ms 384 KB [n = 100, m = 10000], OK, 250 operations
12 Correct 3 ms 384 KB [n = 99, m = 10000], OK, 246 operations
13 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
14 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
15 Correct 2 ms 384 KB [n = 50, m = 10000], OK: No solution
16 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
17 Correct 2 ms 384 KB [n = 50, m = 10000], OK, 125 operations
18 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
19 Correct 4 ms 384 KB [n = 999, m = 10000], OK, 2496 operations
20 Correct 4 ms 384 KB [n = 998, m = 10000], OK, 2495 operations
21 Correct 4 ms 384 KB [n = 997, m = 10000], OK, 2491 operations
22 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
23 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
24 Correct 4 ms 384 KB [n = 1000, m = 10000], OK: No solution
25 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
26 Correct 4 ms 384 KB [n = 1000, m = 10000], OK, 2500 operations
27 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
28 Correct 8 ms 384 KB [n = 1999, m = 10000], OK, 4996 operations
29 Correct 9 ms 384 KB [n = 1998, m = 10000], OK, 4995 operations
30 Correct 9 ms 384 KB [n = 1997, m = 10000], OK, 4991 operations
31 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
32 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
33 Correct 8 ms 384 KB [n = 2000, m = 10000], OK: No solution
34 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
35 Correct 9 ms 384 KB [n = 2000, m = 10000], OK, 5000 operations
36 Correct 9 ms 384 KB [n = 2000, m = 8100], OK, 5000 operations
37 Correct 9 ms 384 KB [n = 1999, m = 8100], OK, 4996 operations
38 Correct 9 ms 384 KB [n = 1998, m = 8100], OK, 4995 operations
39 Correct 9 ms 384 KB [n = 1997, m = 8100], OK, 4991 operations
40 Correct 9 ms 384 KB [n = 1996, m = 8100], OK, 4990 operations
41 Correct 9 ms 384 KB [n = 2000, m = 8100], OK, 5000 operations
42 Correct 9 ms 384 KB [n = 2000, m = 8100], OK, 5000 operations
43 Correct 8 ms 384 KB [n = 2000, m = 8100], OK: No solution
44 Correct 9 ms 384 KB [n = 2000, m = 8100], OK, 5000 operations
45 Correct 9 ms 384 KB [n = 2000, m = 8100], OK, 5000 operations
46 Correct 8 ms 384 KB [n = 2000, m = 6100], OK, 5000 operations
47 Correct 9 ms 384 KB [n = 1999, m = 6100], OK, 4996 operations
48 Correct 8 ms 384 KB [n = 1998, m = 6100], OK, 4995 operations
49 Correct 9 ms 384 KB [n = 1997, m = 6100], OK, 4991 operations
50 Correct 8 ms 384 KB [n = 1996, m = 6100], OK, 4990 operations
51 Correct 8 ms 384 KB [n = 2000, m = 6100], OK, 5000 operations
52 Correct 8 ms 384 KB [n = 2000, m = 6100], OK, 5000 operations
53 Correct 8 ms 384 KB [n = 2000, m = 6100], OK: No solution
54 Correct 8 ms 384 KB [n = 2000, m = 6100], OK, 5000 operations
55 Correct 9 ms 384 KB [n = 2000, m = 6100], OK, 5000 operations
56 Correct 8 ms 384 KB [n = 2000, m = 5100], OK, 5000 operations
57 Correct 9 ms 384 KB [n = 1999, m = 5100], OK, 4996 operations
58 Correct 9 ms 512 KB [n = 1998, m = 5100], OK, 4995 operations
59 Correct 9 ms 384 KB [n = 1997, m = 5100], OK, 4991 operations
60 Correct 8 ms 640 KB [n = 1996, m = 5100], OK, 4990 operations
61 Correct 8 ms 384 KB [n = 1995, m = 5100], OK, 4986 operations
62 Correct 9 ms 384 KB [n = 1994, m = 5100], OK, 4985 operations
63 Correct 8 ms 384 KB [n = 2000, m = 5100], OK, 5000 operations
64 Correct 8 ms 384 KB [n = 2000, m = 5100], OK, 5000 operations
65 Correct 8 ms 384 KB [n = 2000, m = 5100], OK, 5000 operations
66 Correct 8 ms 384 KB [n = 2000, m = 5100], OK: No solution
67 Correct 8 ms 384 KB [n = 2000, m = 5100], OK, 5000 operations