QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#507612#7156. Find the Boxmonster_hunterAC ✓1ms3952kbC++14729b2024-08-06 19:39:432024-08-06 19:39:45

Judging History

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

  • [2024-08-06 19:39:45]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3952kb
  • [2024-08-06 19:39:43]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#define LL long long
#define f fflush(stdout)
LL n,i,j,k,m,x,y;
int main(){
	scanf("%lld%lld",&n,&m);
	printf("? ");
	for(i=1;i<m;i++)
	  printf(">");
	for(i=1;i<n;i++)
	  printf("v");
	printf("\n");
	f;
	scanf("%lld%lld",&x,&y);
	if(x!=n-1){
		printf("! %lld %lld\n",x+1,m-1);
		return 0;
	}
	if(y!=m-1){
		printf("! %lld %lld\n",0ll,y+1);
		return 0;
	}
	printf("? ");
	for(i=1;i<m;i++){
		printf(">");
	}
	for(i=1;i<=n;i++){
		printf("v");
		for(j=1;j<=m;j++)
		  printf("<");
		printf("^<v");
		if(i!=n){
			for(j=1;j<=m;j++)
			  printf(">");
		}
	}
	printf("\n");
	f;
	scanf("%lld%lld",&x,&y);
	printf("! %lld %lld",x+1,y);
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4 5
3 4
1 3

output:

? >>>>vvv
? >>>>v<<<<<^<v>>>>>v<<<<<^<v>>>>>v<<<<<^<v>>>>>v<<<<<^<v
! 2 3

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #2:

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

input:

5 4
4 3
2 2

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #3:

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

input:

50 49
47 48

output:

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

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #4:

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

input:

49 50
47 49

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
! 48 49

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #5:

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

input:

2 50
1 49
0 12

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v
? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^<v>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^<v
! 1 12

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #6:

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

input:

50 2
46 1

output:

? >vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
! 47 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #7:

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

input:

1 2
0 0

output:

? >
! 0 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #8:

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

input:

1 3
0 0

output:

? >>
! 0 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #9:

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

input:

1 3
0 1

output:

? >>
! 0 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #10:

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

input:

1 4
0 0

output:

? >>>
! 0 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #11:

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

input:

1 4
0 1

output:

? >>>
! 0 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #12:

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

input:

1 4
0 2

output:

? >>>
! 0 3

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #13:

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

input:

2 1
0 0

output:

? v
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #14:

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

input:

2 2
1 0

output:

? >v
! 0 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #15:

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

input:

2 2
1 1
0 0

output:

? >v
? >v<<^<v>>v<<^<v
! 1 0

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #16:

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

input:

2 2
0 1

output:

? >v
! 1 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #17:

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

input:

2 3
1 0

output:

? >>v
! 0 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #18:

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

input:

2 3
1 1

output:

? >>v
! 0 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #19:

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

input:

2 3
1 2
0 0

output:

? >>v
? >>v<<<^<v>>>v<<<^<v
! 1 0

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #20:

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

input:

2 3
1 2
0 1

output:

? >>v
? >>v<<<^<v>>>v<<<^<v
! 1 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #21:

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

input:

2 3
0 2

output:

? >>v
! 1 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #22:

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

input:

2 4
1 0

output:

? >>>v
! 0 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #23:

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

input:

2 4
1 1

output:

? >>>v
! 0 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #24:

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

input:

2 4
1 2

output:

? >>>v
! 0 3

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #25:

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

input:

2 4
1 3
0 0

output:

? >>>v
? >>>v<<<<^<v>>>>v<<<<^<v
! 1 0

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #26:

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

input:

2 4
1 3
0 1

output:

? >>>v
? >>>v<<<<^<v>>>>v<<<<^<v
! 1 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #27:

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

input:

2 4
1 3
0 2

output:

? >>>v
? >>>v<<<<^<v>>>>v<<<<^<v
! 1 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #28:

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

input:

2 4
0 3

output:

? >>>v
! 1 3

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #29:

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

input:

3 1
0 0

output:

? vv
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #30:

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

input:

3 1
1 0

output:

? vv
! 2 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #31:

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

input:

3 2
2 0

output:

? >vv
! 0 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #32:

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

input:

3 2
2 1
0 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #33:

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

input:

3 2
0 1

output:

? >vv
! 1 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #34:

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

input:

3 2
2 1
1 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #35:

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

input:

3 2
1 1

output:

? >vv
! 2 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #36:

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

input:

3 3
2 0

output:

? >>vv
! 0 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #37:

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

input:

3 3
2 1

output:

? >>vv
! 0 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #38:

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

input:

3 3
2 2
0 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #39:

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

input:

3 3
2 2
0 1

output:

? >>vv
? >>v<<<^<v>>>v<<<^<v>>>v<<<^<v
! 1 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #40:

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

input:

3 3
0 2

output:

? >>vv
! 1 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #41:

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

input:

3 3
2 2
1 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #42:

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

input:

3 3
2 2
1 1

output:

? >>vv
? >>v<<<^<v>>>v<<<^<v>>>v<<<^<v
! 2 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #43:

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

input:

3 3
1 2

output:

? >>vv
! 2 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #44:

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

input:

3 4
2 0

output:

? >>>vv
! 0 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #45:

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

input:

3 4
2 1

output:

? >>>vv
! 0 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #46:

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

input:

3 4
2 2

output:

? >>>vv
! 0 3

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #47:

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

input:

3 4
2 3
0 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #48:

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

input:

3 4
2 3
0 1

output:

? >>>vv
? >>>v<<<<^<v>>>>v<<<<^<v>>>>v<<<<^<v
! 1 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #49:

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

input:

3 4
2 3
0 2

output:

? >>>vv
? >>>v<<<<^<v>>>>v<<<<^<v>>>>v<<<<^<v
! 1 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #50:

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

input:

3 4
0 3

output:

? >>>vv
! 1 3

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #51:

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

input:

3 4
2 3
1 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #52:

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

input:

3 4
2 3
1 1

output:

? >>>vv
? >>>v<<<<^<v>>>>v<<<<^<v>>>>v<<<<^<v
! 2 1

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #53:

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

input:

3 4
2 3
1 2

output:

? >>>vv
? >>>v<<<<^<v>>>>v<<<<^<v>>>>v<<<<^<v
! 2 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #54:

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

input:

3 4
1 3

output:

? >>>vv
! 2 3

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #55:

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

input:

4 1
0 0

output:

? vvv
! 1 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #56:

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

input:

4 1
1 0

output:

? vvv
! 2 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #57:

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

input:

4 1
2 0

output:

? vvv
! 3 0

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #58:

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

input:

4 2
3 0

output:

? >vvv
! 0 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #59:

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

input:

4 2
3 1
0 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #60:

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

input:

4 2
0 1

output:

? >vvv
! 1 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #61:

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

input:

4 2
3 1
1 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #62:

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

input:

4 2
1 1

output:

? >vvv
! 2 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #63:

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

input:

4 2
3 1
2 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #64:

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

input:

4 2
2 1

output:

? >vvv
! 3 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #65:

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

input:

4 3
3 0

output:

? >>vvv
! 0 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #66:

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

input:

4 3
3 1

output:

? >>vvv
! 0 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #67:

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

input:

4 3
3 2
0 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #68:

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

input:

4 3
3 2
0 1

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #69:

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

input:

4 3
0 2

output:

? >>vvv
! 1 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #70:

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

input:

4 3
3 2
1 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #71:

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

input:

4 3
3 2
1 1

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #72:

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

input:

4 3
1 2

output:

? >>vvv
! 2 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #73:

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

input:

4 3
3 2
2 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #74:

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

input:

4 3
3 2
2 1

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #75:

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

input:

4 3
2 2

output:

? >>vvv
! 3 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #76:

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

input:

4 4
3 0

output:

? >>>vvv
! 0 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #77:

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

input:

4 4
3 1

output:

? >>>vvv
! 0 2

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #78:

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

input:

4 4
3 2

output:

? >>>vvv
! 0 3

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #79:

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

input:

4 4
3 3
0 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #80:

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

input:

4 4
3 3
0 1

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #81:

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

input:

4 4
3 3
0 2

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #82:

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

input:

4 4
0 3

output:

? >>>vvv
! 1 3

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #83:

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

input:

4 4
3 3
1 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #84:

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

input:

4 4
3 3
1 1

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #85:

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

input:

4 4
3 3
1 2

output:

? >>>vvv
? >>>v<<<<^<v>>>>v<<<<^<v>>>>v<<<<^<v>>>>v<<<<^<v
! 2 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #86:

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

input:

4 4
1 3

output:

? >>>vvv
! 2 3

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #87:

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

input:

4 4
3 3
2 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #88:

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

input:

4 4
3 3
2 1

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #89:

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

input:

4 4
3 3
2 2

output:

? >>>vvv
? >>>v<<<<^<v>>>>v<<<<^<v>>>>v<<<<^<v>>>>v<<<<^<v
! 3 2

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #90:

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

input:

4 4
2 3

output:

? >>>vvv
! 3 3

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #91:

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

input:

49 49
48 0

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
! 0 1

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #92:

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

input:

49 49
48 48
0 0

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^<v>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #93:

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

input:

49 49
48 48
0 1

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^<v>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #94:

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

input:

49 49
47 48

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
! 48 48

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #95:

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

input:

49 49
46 48

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
! 47 48

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #96:

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

input:

49 49
48 48
47 47

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^<v>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #97:

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

input:

49 49
48 48
46 47

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^<v>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #98:

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

input:

49 49
48 47

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
! 0 48

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #99:

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

input:

49 49
0 48

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
! 1 48

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #100:

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

input:

49 49
48 48
0 47

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^<v>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #101:

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

input:

49 49
48 48
47 0

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^<v>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #102:

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

input:

49 49
48 48
46 0

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^<v>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #103:

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

input:

49 49
48 48
47 1

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^<v>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #104:

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

input:

49 49
48 48
46 1

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^<v>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #105:

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

input:

49 49
48 48
22 24

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^<v>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #106:

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

input:

49 49
48 23

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
! 0 24

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #107:

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

input:

49 49
48 48
22 0

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^<v>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #108:

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

input:

49 49
48 48
47 23

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^<v>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #109:

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

input:

49 49
23 48

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
! 24 48

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #110:

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

input:

49 49
48 48
11 44

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^<v>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #111:

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

input:

49 49
48 48
31 18

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<^<v>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #112:

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

input:

50 50
49 0

output:

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

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #113:

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

input:

50 50
49 49
0 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #114:

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

input:

50 50
49 49
0 1

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #115:

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

input:

50 50
48 49

output:

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

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #116:

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

input:

50 50
47 49

output:

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

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #117:

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

input:

50 50
49 49
48 48

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #118:

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

input:

50 50
49 49
47 48

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #119:

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

input:

50 50
49 48

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
! 0 49

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #120:

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

input:

50 50
0 49

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
! 1 49

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #121:

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

input:

50 50
49 49
0 48

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #122:

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

input:

50 50
49 49
48 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #123:

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

input:

50 50
49 49
47 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #124:

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

input:

50 50
49 49
48 1

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #125:

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

input:

50 50
49 49
47 1

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #126:

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

input:

50 50
49 49
22 24

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #127:

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

input:

50 50
49 23

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
! 0 24

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #128:

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

input:

50 50
49 49
22 0

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #129:

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

input:

50 50
49 49
48 23

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #130:

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

input:

50 50
23 49

output:

? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
! 24 49

result:

points 1.0 1.0 used 1 queried; score: 100.00

Test #131:

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

input:

50 50
49 49
11 44

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #132:

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

input:

50 50
49 49
31 18

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Extra Test:

score: 0
Extra Test Passed