QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#866471#8812. Library 3lgvc#21 126ms3840kbC++232.3kb2025-01-22 15:36:162025-01-22 15:36:17

Judging History

你现在查看的是最新测评结果

  • [2025-01-22 15:36:17]
  • 评测
  • 测评结果:21
  • 用时:126ms
  • 内存:3840kb
  • [2025-01-22 15:36:16]
  • 提交

answer

#include "library3.h"
#include <bits/stdc++.h>
std::mt19937 rng(time(0));
int la;
std::vector<int> sv2(std::vector<int> b,std::vector<int> tp) {
	if(tp.size()<=1) return b;
	for(int j=0;j<tp.size();j++) {
		std::swap(tp[j],tp[rng()%(j+1)]);
	}
	std::swap(b[tp[0]],b[tp[1]]);
	la--;
	std::vector<int> t0,t1;
	t0.push_back(tp[0]);
	t1.push_back(tp[1]);
	for(int j=2;j<tp.size();j++) {
		std::swap(b[tp[0]],b[tp[j]]);
		if(query(b)<=la) {
			t0.push_back(tp[j]);
		} else {			
			t1.push_back(tp[j]);
		}
		std::swap(b[tp[0]],b[tp[j]]);
	}
	b=sv2(b,t0);
	b=sv2(b,t1);
	return b;
}
std::vector<int> sv(std::vector<int> b,std::vector<int> tp,int vv) {
	if(tp.size()<=1) return b;
	for(int j=0;j<tp.size();j++) {
		std::swap(tp[j],tp[rng()%(j+1)]);
	}
	for(int j=0;j<tp.size();j++) {
		std::swap(b[tp[j]],b[tp[rng()%(j+1)]]);
	}
	bool vi[509]={0};
	int aa=query(b),ta=aa,cnt=tp.size();
	for(int i=0;i<tp.size();i++) {
		if(vi[i]) continue;
		std::vector<int> tp2;
		tp2.push_back(tp[i]);
		for(int j=i+1;j<tp.size();j++) {
			if(vi[j]) continue;
			std::swap(b[tp[i]],b[tp[j]]);
			if((vv==aa-cnt+1)||(query(b)<aa)) {
				tp2.push_back(tp[j]);
				vi[j]=1;
			}
			std::swap(b[tp[i]],b[tp[j]]);
		}
		la=aa;
		cnt-=tp2.size();
		if(tp2.size()<=500) b=sv2(b,tp2);
		else b=sv(b,tp2,aa);
		aa-=tp2.size()-1;
	}
	return b;
}
void solve(int N) {
	std::vector<int> b;
	std::vector<int> tp;
	b.resize(N);
	tp.resize(N);
	for(int i=0;i<N;i++) {
		b[i]=i;
		tp[i]=i;
	}
	answer(sv(b,tp,0));
	return;
/*	for(int i=0;i<N;i++) {		
		std::swap(b[i],b[rng()%(i+1)]);
	}
	la=query(b);
	int cq=0;
	while(la<N-1) {
		int x=rng()%N,y=rng()%N;
		if(x==y) continue;
		std::swap(b[x],b[y]);
		cq++;
		int ak=query(b);
		if(la<ak) {
			la=ak;
		} else {
			std::swap(b[x],b[y]);
		}
	}
	printf("%d\n",cq);
	std::vector<int> tp;
	for(int i=0;i<N;i++) tp.push_back(i);
	answer(sv(b,tp));
	return;
	bool vi[509]={0};
	int cnt=N;
	for(int i=0;i<N;i++) {
		if(vi[i]) continue;
		std::vector<int> tp;
		tp.push_back(i);
		for(int j=i+1;j<N;j++) {
			if(vi[j]) continue;
			std::swap(b[i],b[j]);
			if((la==cnt-1)||(query(b)<la)) {
				tp.push_back(j);
				vi[j]=1;
			}
			std::swap(b[i],b[j]);
		}
		cnt-=tp.size();
		b=sv(b,tp);
	}
	answer(b);*/
}

詳細信息

Subtask #1:

score: 2
Accepted

Test #1:

score: 2
Accepted
time: 1ms
memory: 3712kb

input:

2
0
1

output:

? 0 1
? 1 0
! 0 1
-

result:

ok Accepted

Test #2:

score: 2
Accepted
time: 1ms
memory: 3712kb

input:

3
1
0
2

output:

? 2 1 0
? 1 2 0
? 0 1 2
! 1 2 0
-

result:

ok Accepted

Test #3:

score: 2
Accepted
time: 1ms
memory: 3840kb

input:

4
1
2
2
2
0
2

output:

? 1 3 2 0
? 3 1 2 0
? 2 3 1 0
? 0 3 2 1
? 1 2 3 0
? 1 0 2 3
! 1 2 3 0
-

result:

ok Accepted

Test #4:

score: 2
Accepted
time: 0ms
memory: 3712kb

input:

5
3
2
4
2
2
3
3
2

output:

? 1 4 2 0 3
? 4 1 2 0 3
? 2 4 1 0 3
? 3 4 2 0 1
? 0 4 2 1 3
? 4 3 2 0 1
? 0 4 2 3 1
? 3 1 2 4 0
! 3 0 2 1 4
-

result:

ok Accepted

Test #5:

score: 2
Accepted
time: 1ms
memory: 3840kb

input:

5
2
1
3
1
3
2
1

output:

? 1 4 2 0 3
? 4 1 2 0 3
? 2 4 1 0 3
? 3 4 2 0 1
? 0 4 2 1 3
? 4 3 2 0 1
? 3 1 0 2 4
! 3 1 2 0 4
-

result:

ok Accepted

Test #6:

score: 2
Accepted
time: 1ms
memory: 3840kb

input:

6
3
4
4
4
4
4
2
4
2
4
3

output:

? 0 2 4 5 1 3
? 0 3 4 5 1 2
? 0 2 3 5 1 4
? 0 2 4 5 3 1
? 0 2 4 3 1 5
? 3 2 4 5 1 0
? 0 4 2 5 1 3
? 0 1 4 5 2 3
? 0 5 4 2 1 3
? 2 0 4 5 1 3
? 0 5 2 4 1 3
! 1 4 5 2 0 3
-

result:

ok Accepted

Test #7:

score: 2
Accepted
time: 0ms
memory: 3840kb

input:

6
4
3
3
5
3
3
4
2
4
2

output:

? 0 2 4 5 1 3
? 0 3 4 5 1 2
? 0 2 3 5 1 4
? 0 2 4 5 3 1
? 0 2 4 3 1 5
? 3 2 4 5 1 0
? 0 3 2 5 1 4
? 0 3 4 2 1 5
? 2 3 4 5 1 0
? 4 0 3 2 1 5
! 3 4 0 2 1 5
-

result:

ok Accepted

Test #8:

score: 2
Accepted
time: 1ms
memory: 3840kb

input:

6
4
5
3
5
3
3
4
2

output:

? 0 2 4 5 1 3
? 0 3 4 5 1 2
? 0 2 3 5 1 4
? 0 2 4 5 3 1
? 0 2 4 3 1 5
? 3 2 4 5 1 0
? 0 2 3 4 1 5
? 4 2 3 5 1 0
! 4 1 5 3 2 0
-

result:

ok Accepted

Test #9:

score: 2
Accepted
time: 0ms
memory: 3840kb

input:

5
3
2
4
4
2
1

output:

? 1 4 2 0 3
? 4 1 2 0 3
? 2 4 1 0 3
? 3 4 2 0 1
? 0 4 2 1 3
? 4 0 2 1 3
! 4 0 3 1 2
-

result:

ok Accepted

Test #10:

score: 2
Accepted
time: 0ms
memory: 3584kb

input:

6
4
3
3
3
5
3
2
2
2
1
3

output:

? 0 2 4 5 1 3
? 0 3 4 5 1 2
? 0 2 3 5 1 4
? 0 2 4 5 3 1
? 0 2 4 3 1 5
? 3 2 4 5 1 0
? 0 3 2 5 1 4
? 0 3 4 5 2 1
? 2 3 4 5 1 0
? 2 3 0 5 1 4
? 2 3 4 5 0 1
! 1 3 0 5 2 4
-

result:

ok Accepted

Subtask #2:

score: 19
Accepted

Dependency #1:

100%
Accepted

Test #11:

score: 19
Accepted
time: 0ms
memory: 3712kb

input:

7
5
4
4
4
4
6
4
5
3
3
3
4
2

output:

? 2 3 6 1 5 4 0
? 2 3 6 1 5 0 4
? 2 3 4 1 5 6 0
? 2 3 6 1 4 5 0
? 2 3 6 4 5 1 0
? 4 3 6 1 5 2 0
? 2 4 6 1 5 3 0
? 2 3 1 4 5 6 0
? 2 3 6 4 5 0 1
? 2 1 6 4 5 3 0
? 2 3 6 4 1 5 0
? 2 3 6 4 0 5 1
? 2 0 6 4 5 3 1
! 2 0 4 6 1 3 5
-

result:

ok Accepted

Test #12:

score: 19
Accepted
time: 3ms
memory: 3712kb

input:

50
45
44
46
44
44
44
44
46
46
44
46
44
46
44
44
44
44
44
44
44
44
44
44
46
44
46
44
44
46
44
44
44
44
46
44
46
44
44
44
44
44
44
44
44
44
44
44
46
46
44
45
45
43
43
45
45
43
43
43
45
45
45
45
43
43
43
45
43
45
45
45
43
43
45
45
43
43
45
45
45
45
45
45
43
43
45
42
42
42
42
42
42
42
42
42
42
42
42
42
...

output:

? 37 32 8 45 36 18 29 47 2 17 6 7 13 28 20 22 16 15 42 11 4 10 19 49 25 9 41 26 27 3 23 12 21 33 5 30 38 44 24 0 35 31 34 40 46 39 1 14 43 48
? 37 32 8 45 36 18 29 47 2 17 6 7 13 28 20 22 16 15 42 11 4 10 26 49 25 9 41 19 27 3 23 12 21 33 5 30 38 44 24 0 35 31 34 40 46 39 1 14 43 48
? 37 32 19 45 36...

result:

ok Accepted

Test #13:

score: 19
Accepted
time: 5ms
memory: 3840kb

input:

98
92
91
91
91
93
91
93
91
93
93
91
91
91
93
91
93
91
93
91
91
91
91
91
91
91
93
91
91
91
93
91
91
91
91
91
93
91
91
93
93
91
91
91
91
91
91
91
93
91
93
91
91
91
93
91
93
91
91
91
91
91
93
93
91
93
91
91
91
91
91
91
91
93
91
91
91
93
91
91
91
91
91
91
93
91
91
91
91
93
93
91
91
91
93
91
91
91
91
90
...

output:

? 20 10 61 60 82 86 16 97 7 63 51 9 76 31 65 45 53 71 52 27 46 19 83 3 64 56 37 78 92 68 14 6 74 8 90 12 95 81 73 57 44 85 62 33 59 36 15 75 72 54 96 0 18 43 25 23 42 55 49 4 24 2 5 21 22 32 47 91 38 41 39 29 94 28 80 1 84 11 67 34 66 50 88 58 30 13 70 17 69 87 89 35 77 40 48 79 26 93
? 20 10 61 60 ...

result:

ok Accepted

Test #14:

score: 19
Accepted
time: 2ms
memory: 3840kb

input:

98
90
91
91
91
91
91
89
91
91
91
89
91
89
91
89
91
91
91
91
91
89
91
91
91
91
91
91
91
91
91
89
91
91
91
91
91
91
91
91
91
91
91
91
91
91
89
91
89
91
89
89
89
89
89
91
91
91
91
91
91
91
91
91
91
91
89
91
91
91
89
91
91
89
91
91
91
91
91
91
91
91
91
91
91
91
91
91
91
91
91
89
91
89
91
91
91
91
91
88
...

output:

? 20 10 61 60 82 86 16 97 7 63 51 9 76 31 65 45 53 71 52 27 46 19 83 3 64 56 37 78 92 68 14 6 74 8 90 12 95 81 73 57 44 85 62 33 59 36 15 75 72 54 96 0 18 43 25 23 42 55 49 4 24 2 5 21 22 32 47 91 38 41 39 29 94 28 80 1 84 11 67 34 66 50 88 58 30 13 70 17 69 87 89 35 77 40 48 79 26 93
? 20 10 61 60 ...

result:

ok Accepted

Test #15:

score: 19
Accepted
time: 4ms
memory: 3712kb

input:

99
89
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
88
90
90
90
90
90
90
90
90
90
90
88
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
88
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
90
...

output:

? 40 96 31 78 27 97 19 64 73 16 81 49 14 88 20 23 15 61 12 41 8 51 4 34 17 91 66 67 71 65 43 35 55 76 36 26 69 93 18 30 53 63 83 85 95 79 10 39 45 13 6 68 84 86 5 57 29 80 11 47 44 50 62 9 94 74 98 25 87 56 89 1 33 0 52 7 59 38 42 77 82 21 72 58 3 2 70 75 24 46 92 22 28 32 48 37 54 90 60
? 40 96 31 ...

result:

ok Accepted

Test #16:

score: 19
Accepted
time: 1ms
memory: 3840kb

input:

99
95
96
96
96
96
96
94
96
94
96
94
96
94
94
96
94
96
96
94
94
94
96
94
96
96
94
96
96
96
96
96
96
96
94
96
96
96
96
96
94
94
96
96
96
96
94
96
96
96
94
94
96
94
96
96
94
96
96
96
96
94
96
96
94
96
96
94
96
96
96
96
96
96
94
96
94
96
96
94
96
94
94
96
96
94
96
94
94
94
96
96
96
94
96
94
96
96
96
96
...

output:

? 40 96 31 78 27 97 19 64 73 16 81 49 14 88 20 23 15 61 12 41 8 51 4 34 17 91 66 67 71 65 43 35 55 76 36 26 69 93 18 30 53 63 83 85 95 79 10 39 45 13 6 68 84 86 5 57 29 80 11 47 44 50 62 9 94 74 98 25 87 56 89 1 33 0 52 7 59 38 42 77 82 21 72 58 3 2 70 75 24 46 92 22 28 32 48 37 54 90 60
? 40 96 31 ...

result:

ok Accepted

Test #17:

score: 19
Accepted
time: 3ms
memory: 3840kb

input:

99
91
92
92
90
92
92
92
92
92
92
92
92
92
90
92
92
92
92
90
92
92
92
90
90
92
92
92
92
92
92
92
92
90
92
92
92
92
92
92
90
92
92
90
92
92
90
92
90
92
92
92
92
92
92
90
92
92
92
92
92
92
92
92
92
92
92
92
92
92
92
92
92
92
92
92
92
90
92
90
92
90
92
92
92
92
92
92
92
92
92
92
92
92
92
92
92
92
92
92
...

output:

? 40 96 31 78 27 97 19 64 73 16 81 49 14 88 20 23 15 61 12 41 8 51 4 34 17 91 66 67 71 65 43 35 55 76 36 26 69 93 18 30 53 63 83 85 95 79 10 39 45 13 6 68 84 86 5 57 29 80 11 47 44 50 62 9 94 74 98 25 87 56 89 1 33 0 52 7 59 38 42 77 82 21 72 58 3 2 70 75 24 46 92 22 28 32 48 37 54 90 60
? 40 96 31 ...

result:

ok Accepted

Test #18:

score: 19
Accepted
time: 3ms
memory: 3712kb

input:

100
96
95
95
95
95
95
95
97
97
95
95
95
95
95
97
95
95
97
95
95
97
95
95
95
95
97
95
97
95
95
95
95
95
95
95
95
95
95
95
95
95
95
95
95
95
95
95
95
95
95
95
95
97
95
95
95
95
95
95
95
97
97
95
95
95
95
95
95
95
97
95
97
95
95
97
95
95
95
95
95
95
95
95
97
97
95
97
95
95
97
95
95
95
97
95
97
95
97
95...

output:

? 89 92 41 50 95 57 10 26 73 24 28 93 3 80 1 32 34 35 6 55 72 4 66 40 91 54 15 21 46 42 52 11 78 96 51 30 60 0 84 94 29 64 67 61 38 87 48 47 14 13 7 33 59 71 49 75 85 16 31 74 53 22 69 77 86 23 19 44 43 97 76 58 17 65 79 98 45 12 39 82 63 90 68 70 81 27 2 88 99 5 62 83 18 56 8 20 36 25 37 9
? 89 92 ...

result:

ok Accepted

Test #19:

score: 19
Accepted
time: 5ms
memory: 3712kb

input:

100
96
97
97
95
97
95
97
97
97
95
97
97
97
97
95
95
97
97
97
97
95
97
97
97
97
97
97
97
97
97
97
97
97
95
97
97
97
95
97
97
95
97
97
97
97
97
97
97
97
97
97
97
97
97
97
95
97
97
97
97
97
97
97
95
97
97
97
97
97
97
95
97
97
97
97
97
97
97
97
95
97
97
97
97
97
95
95
97
97
97
97
97
97
97
97
97
97
97
97...

output:

? 89 92 41 50 95 57 10 26 73 24 28 93 3 80 1 32 34 35 6 55 72 4 66 40 91 54 15 21 46 42 52 11 78 96 51 30 60 0 84 94 29 64 67 61 38 87 48 47 14 13 7 33 59 71 49 75 85 16 31 74 53 22 69 77 86 23 19 44 43 97 76 58 17 65 79 98 45 12 39 82 63 90 68 70 81 27 2 88 99 5 62 83 18 56 8 20 36 25 37 9
? 89 92 ...

result:

ok Accepted

Test #20:

score: 19
Accepted
time: 4ms
memory: 3712kb

input:

100
95
96
96
96
94
94
96
94
96
96
96
96
96
96
96
96
94
96
96
94
96
94
96
94
96
94
96
94
96
96
96
94
94
94
94
96
96
94
96
96
94
96
94
96
94
96
94
94
94
96
94
96
94
94
94
94
96
94
94
96
96
94
96
96
96
94
96
96
94
96
96
96
94
96
96
96
96
94
94
96
96
96
96
94
96
96
96
96
96
94
96
96
96
94
96
94
96
96
94...

output:

? 89 92 41 50 95 57 10 26 73 24 28 93 3 80 1 32 34 35 6 55 72 4 66 40 91 54 15 21 46 42 52 11 78 96 51 30 60 0 84 94 29 64 67 61 38 87 48 47 14 13 7 33 59 71 49 75 85 16 31 74 53 22 69 77 86 23 19 44 43 97 76 58 17 65 79 98 45 12 39 82 63 90 68 70 81 27 2 88 99 5 62 83 18 56 8 20 36 25 37 9
? 89 92 ...

result:

ok Accepted

Test #21:

score: 19
Accepted
time: 2ms
memory: 3712kb

input:

100
95
94
94
96
94
96
96
94
94
94
94
94
94
96
94
96
94
96
96
94
96
94
96
94
94
94
94
94
96
96
94
96
96
94
94
94
96
96
94
94
94
96
96
96
94
96
94
96
94
96
94
94
96
96
94
94
94
94
94
96
96
96
96
96
96
96
94
94
94
94
96
94
96
94
96
96
94
96
94
94
94
94
94
94
96
96
94
94
94
94
94
96
96
94
94
94
96
94
94...

output:

? 89 92 41 50 95 57 10 26 73 24 28 93 3 80 1 32 34 35 6 55 72 4 66 40 91 54 15 21 46 42 52 11 78 96 51 30 60 0 84 94 29 64 67 61 38 87 48 47 14 13 7 33 59 71 49 75 85 16 31 74 53 22 69 77 86 23 19 44 43 97 76 58 17 65 79 98 45 12 39 82 63 90 68 70 81 27 2 88 99 5 62 83 18 56 8 20 36 25 37 9
? 89 92 ...

result:

ok Accepted

Test #22:

score: 19
Accepted
time: 2ms
memory: 3840kb

input:

99
93
94
92
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
92
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
92
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
92
94
94
94
92
94
94
94
94
94
94
94
94
94
94
...

output:

? 40 96 31 78 27 97 19 64 73 16 81 49 14 88 20 23 15 61 12 41 8 51 4 34 17 91 66 67 71 65 43 35 55 76 36 26 69 93 18 30 53 63 83 85 95 79 10 39 45 13 6 68 84 86 5 57 29 80 11 47 44 50 62 9 94 74 98 25 87 56 89 1 33 0 52 7 59 38 42 77 82 21 72 58 3 2 70 75 24 46 92 22 28 32 48 37 54 90 60
? 40 96 31 ...

result:

ok Accepted

Test #23:

score: 19
Accepted
time: 6ms
memory: 3840kb

input:

100
93
94
94
92
94
94
92
92
94
92
92
94
92
94
92
92
94
94
92
94
94
94
94
92
92
94
92
94
94
92
92
92
92
92
94
92
94
92
94
94
94
94
94
92
92
94
92
92
94
92
92
94
94
92
94
94
92
92
92
94
94
92
94
92
92
92
92
92
92
92
94
94
94
94
92
94
94
94
94
92
92
94
92
94
92
92
92
92
94
92
94
94
94
94
94
92
94
92
94...

output:

? 89 92 41 50 95 57 10 26 73 24 28 93 3 80 1 32 34 35 6 55 72 4 66 40 91 54 15 21 46 42 52 11 78 96 51 30 60 0 84 94 29 64 67 61 38 87 48 47 14 13 7 33 59 71 49 75 85 16 31 74 53 22 69 77 86 23 19 44 43 97 76 58 17 65 79 98 45 12 39 82 63 90 68 70 81 27 2 88 99 5 62 83 18 56 8 20 36 25 37 9
? 89 92 ...

result:

ok Accepted

Test #24:

score: 19
Accepted
time: 5ms
memory: 3840kb

input:

100
95
94
94
94
94
94
94
94
94
94
96
94
96
94
94
94
94
94
94
94
94
94
94
94
94
94
94
94
96
94
94
94
94
94
94
94
94
94
94
94
96
94
94
94
94
94
94
94
94
94
94
94
96
94
94
94
96
94
94
94
94
94
94
94
94
96
94
94
94
94
96
94
96
94
94
94
94
94
94
94
94
94
94
94
96
94
96
94
94
94
94
94
96
94
94
94
94
94
94...

output:

? 89 92 41 50 95 57 10 26 73 24 28 93 3 80 1 32 34 35 6 55 72 4 66 40 91 54 15 21 46 42 52 11 78 96 51 30 60 0 84 94 29 64 67 61 38 87 48 47 14 13 7 33 59 71 49 75 85 16 31 74 53 22 69 77 86 23 19 44 43 97 76 58 17 65 79 98 45 12 39 82 63 90 68 70 81 27 2 88 99 5 62 83 18 56 8 20 36 25 37 9
? 89 92 ...

result:

ok Accepted

Subtask #3:

score: 0
Wrong Answer

Dependency #2:

100%
Accepted

Test #25:

score: 79
Accepted
time: 126ms
memory: 3840kb

input:

498
492
491
491
491
491
491
491
491
491
491
493
491
491
491
491
491
491
491
493
491
491
493
491
491
491
491
491
491
491
491
491
491
491
491
493
491
491
493
491
491
491
491
493
491
491
493
491
491
493
491
493
491
491
491
491
493
493
491
491
491
491
491
493
493
491
491
491
491
491
491
491
493
491
491
...

output:

? 42 214 108 384 445 91 117 274 199 339 210 299 99 174 89 37 204 318 487 495 308 193 276 389 322 413 355 34 73 385 254 68 366 291 183 415 431 458 408 118 350 62 59 230 232 271 220 466 114 0 493 332 212 442 47 226 243 4 338 61 470 103 492 480 189 437 401 392 381 100 143 187 157 418 216 11 130 463 203...

result:

ok Accepted

Test #26:

score: 0
Wrong Answer
time: 123ms
memory: 3712kb

input:

498
491
492
492
492
492
492
492
492
492
492
490
490
492
492
492
490
492
492
492
492
492
492
492
490
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
490
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
492
...

output:

? 480 481 234 126 459 100 330 103 179 197 147 212 409 286 389 153 26 399 222 426 247 98 138 195 245 232 300 39 348 381 448 311 401 206 141 240 430 454 226 338 90 297 29 267 462 110 317 120 446 295 231 108 47 384 373 105 49 219 358 214 209 9 468 491 241 370 148 46 485 33 397 205 125 344 268 180 5 2 1...

result:

wrong answer Wrong Answer [4]