QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#507913#7156. Find the BoxCrysflyAC ✓1ms3820kbC++171.3kb2024-08-06 23:26:002024-08-06 23:26:00

Judging History

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

  • [2024-08-06 23:26:00]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3820kb
  • [2024-08-06 23:26:00]
  • 提交

answer

// what is matter? never mind. 
//#pragma GCC optimize("Ofast")
//#pragma GCC optimize("unroll-loops")
//#pragma GCC target("sse,sse2,sse3,sse4,popcnt,abm,mmx,avx,avx2") 
#include<bits/stdc++.h>
#define For(i,a,b) for(int i=(a);i<=(b);++i)
#define Rep(i,a,b) for(int i=(a);i>=(b);--i)
#define ll long long
#define int long long
#define ull unsigned long long
#define SZ(x) ((int)((x).size()))
#define ALL(x) (x).begin(),(x).end()
using namespace std;
inline int read()
{
    char c=getchar();int x=0;bool f=0;
    for(;!isdigit(c);c=getchar())f^=!(c^45);
    for(;isdigit(c);c=getchar())x=(x<<1)+(x<<3)+(c^48);
    if(f)x=-x;return x;
}

#define fi first
#define se second
#define pb push_back
#define mkp make_pair
typedef pair<int,int>pii;
typedef vector<int>vi;

#define maxn 500006
#define inf 0x3f3f3f3f

int n,m;

void out(int x,int y){
	cout<<"! "<<x<<" "<<y<<endl;
	exit(0);
}
signed main()
{
	cin>>n>>m;
	string s;
	For(i,1,n) s+='v';
	For(i,1,m) s+='>';
	cout<<"? "<<s<<endl;
	int x,y; cin>>x>>y;
	if(x!=n-1 || y!=m-1){
		if(x!=n-1) out(x+1,0);
		else assert(y!=m-1),out(n-1,y+1);
	}
	s="";
	For(i,1,n) s+='v';
	For(j,1,m-1){
		s+='>';
		For(i,1,n)s+='^';
		s+="<^>";
		if(j<m-1){
			For(i,1,n)s+='v';
		}
	}
	cout<<"? "<<s<<endl;
	cin>>x>>y;
	cout<<"! "<<x<<" "<<y+1<<endl;
	return 0;
}
/*

*/

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3464kb

input:

4 5
3 4
2 2

output:

? vvvv>>>>>
? vvvv>^^^^<^>vvvv>^^^^<^>vvvv>^^^^<^>vvvv>^^^^<^>
! 2 3

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #2:

score: 0
Accepted
time: 1ms
memory: 3560kb

input:

5 4
4 3
3 1

output:

? vvvvv>>>>
? vvvvv>^^^^^<^>vvvvv>^^^^^<^>vvvvv>^^^^^<^>
! 3 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #3:

score: 0
Accepted
time: 1ms
memory: 3588kb

input:

50 49
49 48
48 47

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #4:

score: 0
Accepted
time: 1ms
memory: 3576kb

input:

49 50
48 48

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 48 49

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #5:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

2 50
1 11

output:

? vv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 1 12

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #6:

score: 0
Accepted
time: 1ms
memory: 3576kb

input:

50 2
49 1
47 0

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>
! 47 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #7:

score: 0
Accepted
time: 1ms
memory: 3572kb

input:

1 2
0 0

output:

? v>>
! 0 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #8:

score: 0
Accepted
time: 1ms
memory: 3676kb

input:

1 3
0 0

output:

? v>>>
! 0 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #9:

score: 0
Accepted
time: 1ms
memory: 3812kb

input:

1 3
0 1

output:

? v>>>
! 0 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #10:

score: 0
Accepted
time: 1ms
memory: 3560kb

input:

1 4
0 0

output:

? v>>>>
! 0 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #11:

score: 0
Accepted
time: 1ms
memory: 3808kb

input:

1 4
0 1

output:

? v>>>>
! 0 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #12:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

1 4
0 2

output:

? v>>>>
! 0 3

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #13:

score: 0
Accepted
time: 0ms
memory: 3804kb

input:

2 1
0 0

output:

? vv>
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #14:

score: 0
Accepted
time: 1ms
memory: 3764kb

input:

2 2
1 1
0 0

output:

? vv>>
? vv>^^<^>
! 0 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #15:

score: 0
Accepted
time: 0ms
memory: 3596kb

input:

2 2
0 1

output:

? vv>>
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #16:

score: 0
Accepted
time: 1ms
memory: 3592kb

input:

2 2
1 0

output:

? vv>>
! 1 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #17:

score: 0
Accepted
time: 0ms
memory: 3508kb

input:

2 3
1 2
0 0

output:

? vv>>>
? vv>^^<^>vv>^^<^>
! 0 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #18:

score: 0
Accepted
time: 1ms
memory: 3468kb

input:

2 3
1 2
0 1

output:

? vv>>>
? vv>^^<^>vv>^^<^>
! 0 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #19:

score: 0
Accepted
time: 1ms
memory: 3808kb

input:

2 3
0 2

output:

? vv>>>
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #20:

score: 0
Accepted
time: 1ms
memory: 3596kb

input:

2 3
1 0

output:

? vv>>>
! 1 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #21:

score: 0
Accepted
time: 1ms
memory: 3504kb

input:

2 3
1 1

output:

? vv>>>
! 1 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #22:

score: 0
Accepted
time: 1ms
memory: 3764kb

input:

2 4
1 3
0 0

output:

? vv>>>>
? vv>^^<^>vv>^^<^>vv>^^<^>
! 0 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #23:

score: 0
Accepted
time: 0ms
memory: 3732kb

input:

2 4
1 3
0 1

output:

? vv>>>>
? vv>^^<^>vv>^^<^>vv>^^<^>
! 0 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #24:

score: 0
Accepted
time: 0ms
memory: 3728kb

input:

2 4
1 3
0 2

output:

? vv>>>>
? vv>^^<^>vv>^^<^>vv>^^<^>
! 0 3

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #25:

score: 0
Accepted
time: 1ms
memory: 3808kb

input:

2 4
0 3

output:

? vv>>>>
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #26:

score: 0
Accepted
time: 1ms
memory: 3764kb

input:

2 4
1 0

output:

? vv>>>>
! 1 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #27:

score: 0
Accepted
time: 1ms
memory: 3536kb

input:

2 4
1 1

output:

? vv>>>>
! 1 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #28:

score: 0
Accepted
time: 1ms
memory: 3588kb

input:

2 4
1 2

output:

? vv>>>>
! 1 3

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #29:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

3 1
0 0

output:

? vvv>
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #30:

score: 0
Accepted
time: 0ms
memory: 3504kb

input:

3 1
1 0

output:

? vvv>
! 2 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #31:

score: 0
Accepted
time: 0ms
memory: 3596kb

input:

3 2
2 1
0 0

output:

? vvv>>
? vvv>^^^<^>
! 0 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #32:

score: 0
Accepted
time: 0ms
memory: 3528kb

input:

3 2
0 1

output:

? vvv>>
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #33:

score: 0
Accepted
time: 0ms
memory: 3512kb

input:

3 2
2 1
1 0

output:

? vvv>>
? vvv>^^^<^>
! 1 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #34:

score: 0
Accepted
time: 1ms
memory: 3576kb

input:

3 2
1 1

output:

? vvv>>
! 2 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #35:

score: 0
Accepted
time: 0ms
memory: 3572kb

input:

3 2
2 0

output:

? vvv>>
! 2 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #36:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

3 3
2 2
0 0

output:

? vvv>>>
? vvv>^^^<^>vvv>^^^<^>
! 0 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #37:

score: 0
Accepted
time: 0ms
memory: 3572kb

input:

3 3
2 2
0 1

output:

? vvv>>>
? vvv>^^^<^>vvv>^^^<^>
! 0 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #38:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

3 3
0 2

output:

? vvv>>>
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #39:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

3 3
2 2
1 0

output:

? vvv>>>
? vvv>^^^<^>vvv>^^^<^>
! 1 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #40:

score: 0
Accepted
time: 1ms
memory: 3516kb

input:

3 3
2 2
1 1

output:

? vvv>>>
? vvv>^^^<^>vvv>^^^<^>
! 1 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #41:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

3 3
1 2

output:

? vvv>>>
! 2 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #42:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

3 3
2 0

output:

? vvv>>>
! 2 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #43:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

3 3
2 1

output:

? vvv>>>
! 2 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #44:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

3 4
2 3
0 0

output:

? vvv>>>>
? vvv>^^^<^>vvv>^^^<^>vvv>^^^<^>
! 0 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #45:

score: 0
Accepted
time: 1ms
memory: 3588kb

input:

3 4
2 3
0 1

output:

? vvv>>>>
? vvv>^^^<^>vvv>^^^<^>vvv>^^^<^>
! 0 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #46:

score: 0
Accepted
time: 1ms
memory: 3808kb

input:

3 4
2 3
0 2

output:

? vvv>>>>
? vvv>^^^<^>vvv>^^^<^>vvv>^^^<^>
! 0 3

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #47:

score: 0
Accepted
time: 0ms
memory: 3488kb

input:

3 4
0 3

output:

? vvv>>>>
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #48:

score: 0
Accepted
time: 1ms
memory: 3572kb

input:

3 4
2 3
1 0

output:

? vvv>>>>
? vvv>^^^<^>vvv>^^^<^>vvv>^^^<^>
! 1 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #49:

score: 0
Accepted
time: 0ms
memory: 3572kb

input:

3 4
2 3
1 1

output:

? vvv>>>>
? vvv>^^^<^>vvv>^^^<^>vvv>^^^<^>
! 1 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #50:

score: 0
Accepted
time: 1ms
memory: 3600kb

input:

3 4
2 3
1 2

output:

? vvv>>>>
? vvv>^^^<^>vvv>^^^<^>vvv>^^^<^>
! 1 3

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #51:

score: 0
Accepted
time: 1ms
memory: 3576kb

input:

3 4
1 3

output:

? vvv>>>>
! 2 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #52:

score: 0
Accepted
time: 0ms
memory: 3572kb

input:

3 4
2 0

output:

? vvv>>>>
! 2 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #53:

score: 0
Accepted
time: 0ms
memory: 3800kb

input:

3 4
2 1

output:

? vvv>>>>
! 2 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #54:

score: 0
Accepted
time: 0ms
memory: 3500kb

input:

3 4
2 2

output:

? vvv>>>>
! 2 3

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #55:

score: 0
Accepted
time: 1ms
memory: 3596kb

input:

4 1
0 0

output:

? vvvv>
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #56:

score: 0
Accepted
time: 1ms
memory: 3516kb

input:

4 1
1 0

output:

? vvvv>
! 2 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #57:

score: 0
Accepted
time: 0ms
memory: 3760kb

input:

4 1
2 0

output:

? vvvv>
! 3 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #58:

score: 0
Accepted
time: 0ms
memory: 3808kb

input:

4 2
3 1
0 0

output:

? vvvv>>
? vvvv>^^^^<^>
! 0 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #59:

score: 0
Accepted
time: 0ms
memory: 3508kb

input:

4 2
0 1

output:

? vvvv>>
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #60:

score: 0
Accepted
time: 0ms
memory: 3572kb

input:

4 2
3 1
1 0

output:

? vvvv>>
? vvvv>^^^^<^>
! 1 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #61:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

4 2
1 1

output:

? vvvv>>
! 2 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #62:

score: 0
Accepted
time: 1ms
memory: 3532kb

input:

4 2
3 1
2 0

output:

? vvvv>>
? vvvv>^^^^<^>
! 2 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #63:

score: 0
Accepted
time: 1ms
memory: 3796kb

input:

4 2
2 1

output:

? vvvv>>
! 3 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #64:

score: 0
Accepted
time: 0ms
memory: 3596kb

input:

4 2
3 0

output:

? vvvv>>
! 3 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #65:

score: 0
Accepted
time: 1ms
memory: 3588kb

input:

4 3
3 2
0 0

output:

? vvvv>>>
? vvvv>^^^^<^>vvvv>^^^^<^>
! 0 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #66:

score: 0
Accepted
time: 1ms
memory: 3504kb

input:

4 3
3 2
0 1

output:

? vvvv>>>
? vvvv>^^^^<^>vvvv>^^^^<^>
! 0 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #67:

score: 0
Accepted
time: 1ms
memory: 3464kb

input:

4 3
0 2

output:

? vvvv>>>
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #68:

score: 0
Accepted
time: 1ms
memory: 3532kb

input:

4 3
3 2
1 0

output:

? vvvv>>>
? vvvv>^^^^<^>vvvv>^^^^<^>
! 1 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #69:

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

input:

4 3
3 2
1 1

output:

? vvvv>>>
? vvvv>^^^^<^>vvvv>^^^^<^>
! 1 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #70:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

4 3
1 2

output:

? vvvv>>>
! 2 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #71:

score: 0
Accepted
time: 0ms
memory: 3572kb

input:

4 3
3 2
2 0

output:

? vvvv>>>
? vvvv>^^^^<^>vvvv>^^^^<^>
! 2 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #72:

score: 0
Accepted
time: 1ms
memory: 3576kb

input:

4 3
3 2
2 1

output:

? vvvv>>>
? vvvv>^^^^<^>vvvv>^^^^<^>
! 2 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #73:

score: 0
Accepted
time: 1ms
memory: 3516kb

input:

4 3
2 2

output:

? vvvv>>>
! 3 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #74:

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

input:

4 3
3 0

output:

? vvvv>>>
! 3 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #75:

score: 0
Accepted
time: 1ms
memory: 3508kb

input:

4 3
3 1

output:

? vvvv>>>
! 3 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #76:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

4 4
3 3
0 0

output:

? vvvv>>>>
? vvvv>^^^^<^>vvvv>^^^^<^>vvvv>^^^^<^>
! 0 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #77:

score: 0
Accepted
time: 1ms
memory: 3592kb

input:

4 4
3 3
0 1

output:

? vvvv>>>>
? vvvv>^^^^<^>vvvv>^^^^<^>vvvv>^^^^<^>
! 0 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #78:

score: 0
Accepted
time: 0ms
memory: 3468kb

input:

4 4
3 3
0 2

output:

? vvvv>>>>
? vvvv>^^^^<^>vvvv>^^^^<^>vvvv>^^^^<^>
! 0 3

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #79:

score: 0
Accepted
time: 1ms
memory: 3508kb

input:

4 4
0 3

output:

? vvvv>>>>
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #80:

score: 0
Accepted
time: 1ms
memory: 3572kb

input:

4 4
3 3
1 0

output:

? vvvv>>>>
? vvvv>^^^^<^>vvvv>^^^^<^>vvvv>^^^^<^>
! 1 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #81:

score: 0
Accepted
time: 1ms
memory: 3736kb

input:

4 4
3 3
1 1

output:

? vvvv>>>>
? vvvv>^^^^<^>vvvv>^^^^<^>vvvv>^^^^<^>
! 1 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #82:

score: 0
Accepted
time: 1ms
memory: 3592kb

input:

4 4
3 3
1 2

output:

? vvvv>>>>
? vvvv>^^^^<^>vvvv>^^^^<^>vvvv>^^^^<^>
! 1 3

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #83:

score: 0
Accepted
time: 1ms
memory: 3796kb

input:

4 4
1 3

output:

? vvvv>>>>
! 2 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #84:

score: 0
Accepted
time: 1ms
memory: 3508kb

input:

4 4
3 3
2 0

output:

? vvvv>>>>
? vvvv>^^^^<^>vvvv>^^^^<^>vvvv>^^^^<^>
! 2 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #85:

score: 0
Accepted
time: 1ms
memory: 3572kb

input:

4 4
3 3
2 1

output:

? vvvv>>>>
? vvvv>^^^^<^>vvvv>^^^^<^>vvvv>^^^^<^>
! 2 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #86:

score: 0
Accepted
time: 1ms
memory: 3508kb

input:

4 4
3 3
2 2

output:

? vvvv>>>>
? vvvv>^^^^<^>vvvv>^^^^<^>vvvv>^^^^<^>
! 2 3

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #87:

score: 0
Accepted
time: 1ms
memory: 3576kb

input:

4 4
2 3

output:

? vvvv>>>>
! 3 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #88:

score: 0
Accepted
time: 1ms
memory: 3576kb

input:

4 4
3 0

output:

? vvvv>>>>
! 3 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #89:

score: 0
Accepted
time: 1ms
memory: 3576kb

input:

4 4
3 1

output:

? vvvv>>>>
! 3 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #90:

score: 0
Accepted
time: 1ms
memory: 3604kb

input:

4 4
3 2

output:

? vvvv>>>>
! 3 3

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #91:

score: 0
Accepted
time: 1ms
memory: 3600kb

input:

49 49
48 48
0 0

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #92:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

49 49
0 48

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #93:

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

input:

49 49
48 48
1 0

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #94:

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

input:

49 49
48 47

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 48 48

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #95:

score: 0
Accepted
time: 1ms
memory: 3540kb

input:

49 49
48 48
47 47

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #96:

score: 0
Accepted
time: 1ms
memory: 3572kb

input:

49 49
48 46

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 48 47

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #97:

score: 0
Accepted
time: 1ms
memory: 3776kb

input:

49 49
48 48
47 46

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #98:

score: 0
Accepted
time: 1ms
memory: 3612kb

input:

49 49
48 48
0 47

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #99:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

49 49
48 48
1 47

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #100:

score: 0
Accepted
time: 1ms
memory: 3572kb

input:

49 49
48 48
1 46

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #101:

score: 0
Accepted
time: 0ms
memory: 3532kb

input:

49 49
47 48

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 48 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #102:

score: 0
Accepted
time: 1ms
memory: 3592kb

input:

49 49
46 48

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 47 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #103:

score: 0
Accepted
time: 0ms
memory: 3508kb

input:

49 49
48 0

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 48 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #104:

score: 0
Accepted
time: 1ms
memory: 3572kb

input:

49 49
48 48
47 0

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #105:

score: 0
Accepted
time: 1ms
memory: 3820kb

input:

49 49
48 48
23 23

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #106:

score: 0
Accepted
time: 0ms
memory: 3524kb

input:

49 49
48 48
0 23

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #107:

score: 0
Accepted
time: 1ms
memory: 3604kb

input:

49 49
22 48

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 23 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #108:

score: 0
Accepted
time: 1ms
memory: 3728kb

input:

49 49
48 22

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 48 23

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #109:

score: 0
Accepted
time: 1ms
memory: 3776kb

input:

49 49
48 48
24 47

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #110:

score: 0
Accepted
time: 0ms
memory: 3544kb

input:

49 49
48 48
12 43

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #111:

score: 0
Accepted
time: 1ms
memory: 3612kb

input:

49 49
48 48
32 17

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #112:

score: 0
Accepted
time: 1ms
memory: 3588kb

input:

50 50
49 49
0 0

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #113:

score: 0
Accepted
time: 1ms
memory: 3812kb

input:

50 50
0 49

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #114:

score: 0
Accepted
time: 1ms
memory: 3816kb

input:

50 50
49 49
1 0

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #115:

score: 0
Accepted
time: 1ms
memory: 3764kb

input:

50 50
49 48

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 49 49

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #116:

score: 0
Accepted
time: 1ms
memory: 3612kb

input:

50 50
49 49
48 48

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #117:

score: 0
Accepted
time: 0ms
memory: 3812kb

input:

50 50
49 47

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 49 48

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #118:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

50 50
49 49
48 47

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #119:

score: 0
Accepted
time: 1ms
memory: 3520kb

input:

50 50
49 49
0 48

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #120:

score: 0
Accepted
time: 1ms
memory: 3472kb

input:

50 50
49 49
1 48

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #121:

score: 0
Accepted
time: 1ms
memory: 3600kb

input:

50 50
49 49
1 47

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #122:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

50 50
48 49

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 49 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #123:

score: 0
Accepted
time: 1ms
memory: 3812kb

input:

50 50
47 49

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 48 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #124:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

50 50
49 0

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 49 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #125:

score: 0
Accepted
time: 1ms
memory: 3804kb

input:

50 50
49 49
48 0

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #126:

score: 0
Accepted
time: 0ms
memory: 3820kb

input:

50 50
49 49
23 23

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #127:

score: 0
Accepted
time: 0ms
memory: 3596kb

input:

50 50
49 49
0 23

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #128:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

50 50
22 49

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 23 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #129:

score: 0
Accepted
time: 0ms
memory: 3460kb

input:

50 50
49 22

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! 49 23

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #130:

score: 0
Accepted
time: 1ms
memory: 3808kb

input:

50 50
49 49
24 48

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #131:

score: 0
Accepted
time: 0ms
memory: 3524kb

input:

50 50
49 49
12 43

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #132:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

50 50
49 49
32 17

output:

? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
? vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<^>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Extra Test:

score: 0
Extra Test Passed