QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#507349#7156. Find the Boxmonster_hunterWA 1ms3876kbC++14600b2024-08-06 16:33:262024-08-06 16:33:27

Judging History

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

  • [2024-08-06 16:33:27]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3876kb
  • [2024-08-06 16:33:26]
  • 提交

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("? v");
	for(i=2;i<=n;i++){
		for(j=2;j<=m;j++){
			printf("^>v");
		}
		for(j=2;j<=m;j++)
		  printf("<");
		if(i!=n) printf("v");
	}
	printf("\n");
	f;
	scanf("%lld%lld",&x,&y);
	x+=2;
	if(x==n+1) x=1;
	printf("? ");
	for(i=1;i<x;i++)
	  printf("v");
	for(i=1;i<m;i++)
	  printf(">");
	printf("\n");
	f;
	scanf("%lld%lld",&x,&y);
	if(y==m-1){
		x++,y=0;
	}
	else y++;
	printf("! %lld %lld",x,y);
	return 0;
}

详细

Test #1:

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

input:

4 5
1 0
2 2

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #2:

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

input:

5 4
2 0
3 1

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #3:

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

input:

50 49
47 0
48 47

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #4:

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

input:

49 50
47 0
48 48

output:

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

result:

points 1.0 1.0 used 2 queried; score: 100.00

Test #5:

score: -100
Wrong Answer
time: 1ms
memory: 3788kb

input:

2 50
1 13
0 49

output:

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

result:

wrong answer expected (1,12) but got (1,0)