QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#821008#9884. Grid Construction275307894aAC ✓25ms5116kbC++144.3kb2024-12-19 11:29:152024-12-19 11:29:20

Judging History

This is the latest submission verdict.

  • [2024-12-19 11:29:20]
  • Judged
  • Verdict: AC
  • Time: 25ms
  • Memory: 5116kb
  • [2024-12-19 11:29:15]
  • Submitted

answer

#include<bits/stdc++.h>
#define Gc() getchar()
#define Me(x,y) memset(x,y,sizeof(x))
#define Mc(x,y) memcpy(x,y,sizeof(x))
#define d(x,y) ((m)*(x-1)+(y))
#define R(n) (rnd()%(n)+1)
#define Pc(x) putchar(x)
#define LB lower_bound
#define UB upper_bound
#define fi first
#define se second
#define eb emplace_back
#define all(x) x.begin(),x.end()
using namespace std;using ll=long long;using db=double;using lb=long db;using ui=unsigned;using ull=unsigned long long;using pii=pair<int,int>;
const int N=1e3+5,M=N*4+5,K=1000+5,mod=998244353,Mod=mod-1;const db eps=1e-9;const int INF=1e9+7;mt19937 rnd(28382);
#define Tp template<typename T>
#define Ts template<typename T,typename... Ar>
namespace Debug{
	Tp void _debug(char* f,T t){cerr<<f<<'='<<t<<endl;}
	Ts void _debug(char* f,T x,Ar... y){while(*f!=',') cerr<<*f++;cerr<<'='<<x<<",";_debug(f+1,y...);}
	#ifdef LOCAL
	#define gdb(...) _debug((char*)#__VA_ARGS__,__VA_ARGS__)
	#else 
	#define gdb(...) void()
	#endif
}using namespace Debug;
int n,m;
char ans[N][N];
char ans1[9][1000]={
">>>>>>>>>>>>>>>>",
".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"
};
char ans2[100][1000]={
">>>>>>>>>>>>>>>>>>",
".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"
};
void construct(int n,int m,int sx,int sy){
	if(n==9&&m^9){
		construct(n,n,sx,sy);
		for(int i=1;i*2<=n;i++) for(int j=1;j<=m;j++) swap(ans[i+sx-1][j+sy-1],ans[n-i+1+sx-1][j+sy-1]);
		for(int i=1;i<=n;i++) for(int j=1;j<=m;j++){
			if(ans[sx+i-1][sy+j-1]=='v') ans[sx-1+i][sy+j-1]='^';
			else if(ans[sx+i-1][sy+j-1]=='^') ans[sx+i-1][sy+j-1]='v';
		}
		for(int i=1;i<=4;i++){
			for(int j=1;j<=n;j++) ans[sx+j-1][sy+m-i]=ans[sx+j-1][sy+9-i],gdb(ans[sx+j-1][sy+9-i],sx,sy);
		}
		for(int i=6;i<m-3;i+=6){
			for(int x=1;x<=n;x++) for(int y=1;y<=6;y++) ans[sx+x-1][sy-1+i+y-1]=ans1[x-1][y-1];
		}
		return;
	}
	if(n==11&&m^11){
		construct(n,n,sx,sy);
		for(int i=1;i*2<=n;i++) for(int j=1;j<=m;j++) swap(ans[i+sx-1][j+sy-1],ans[n-i+1+sx-1][j+sy-1]);
		for(int i=1;i<=n;i++) for(int j=1;j<=m;j++){
			if(ans[sx+i-1][sy+j-1]=='v') ans[sx-1+i][sy+j-1]='^';
			else if(ans[sx+i-1][sy+j-1]=='^') ans[sx+i-1][sy+j-1]='v';
		}
		for(int i=1;i<=6;i++){
			for(int j=1;j<=n;j++) ans[sx-1+j][sy+m-i]=ans[sx-1+j][sy+11-i];
		}
		for(int i=6;i<m-5;i+=6){
			for(int x=1;x<=n;x++) for(int y=1;y<=6;y++) ans[sx+x-1][sy-1+i+y-1]=ans2[x-1][y-1];
		}
		return;
	}
	for(int i=1;i<m;i++){
		ans[sx][sy+i-1]='<';
		ans[sx+n-1][sy+i]='>';
	}
	for(int i=1;i<n;i++){
		ans[sx+i][sy]='v';
		ans[sx+i-1][sy+m-1]='^';
	}
	if(n<=3){
		if(n==3) ans[sx+1][sy+1]='.';
		return;
	}
	for(int i=3;i<n;i+=2){
		ans[sx+i-1][sy+1]='>';
		ans[sx+i-1][sy+m-2]='<';
	} 
	for(int i=3;i<m;i+=2){
		ans[sx+1][sy+i-1]='v';
		ans[sx+n-1-1][sy+i-1]='^';
	}
	for(int i=4;i<n-2;i+=2){
		ans[sx+i-1][sy+2]='<';
		ans[sx+i-1][sy+m-3]='>';
	}
	for(int i=4;i<m-2;i+=2){
		ans[sx+2][sy+i-1]='^';
		ans[sx+n-3][sy+i-1]='v';
	}
	construct(n-6,m-6,sx+3,sy+3);
	
}
void Solve(){
	for(int x:{0,1,2}) for(int y:{0,1,2}) if((x*(y+1)+y*(x+1))%3==0) gdb(x,y);
	scanf("%d%d",&n,&m);
	if(n%3!=m%3||n%3==1){
		puts("No");
		return;
	}
	if(n%2==0&&n>2){
		puts("No");
		return;
	}
	if(m%2==0&&m>2){
		puts("No");
		return;
	}
	if(n^m&&min(n,m)<=5){
		puts("No");
		return;
	}
	int flag=0;
	if(n>m) swap(n,m),flag=1;
	puts("Yes");
	for(int i=1;i<=n;i++) for(int j=1;j<=m;j++) ans[i][j]='.';
	construct(n,m,1,1);
	if(!flag){
		for(int i=1;i<=n;i++){
			for(int j=1;j<=m;j++) printf("%c",ans[i][j]);
			printf("\n");
		}
	}else{
		
        for(int i=1;i<=n;i++){
            for(int j=1;j<=m;j++){
                if(ans[i][j]=='^') ans[i][j]='<';
                else if(ans[i][j]=='<') ans[i][j]='^';
                else if(ans[i][j]=='v') ans[i][j]='>';
                else if(ans[i][j]=='>')ans[i][j]='v';
            }
        }
		for(int i=1;i<=m;i++){
			for(int j=1;j<=n;j++) printf("%c",ans[j][i]);
			printf("\n");
		}
	}
}
int main(){
	int t=1;
	// scanf("%d",&t);
	while(t--) Solve();
	cerr<<clock()*1.0/CLOCKS_PER_SEC<<'\n';
}

这程序好像有点Bug,我给组数据试试?

詳細信息

Test #1:

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

input:

3 3

output:

Yes
<<^
v.^
v>>

result:

ok Correct

Test #2:

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

input:

4 4

output:

No

result:

ok Correct : No

Test #3:

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

input:

4 5

output:

No

result:

ok Correct : No

Test #4:

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

input:

11 17

output:

Yes
^>>>>>>>>>>>>>>>>
^.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:

ok Correct

Test #5:

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

input:

1000 1000

output:

No

result:

ok Correct : No

Test #6:

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

input:

6 6

output:

No

result:

ok Correct : No

Test #7:

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

input:

7 7

output:

No

result:

ok Correct : No

Test #8:

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

input:

8 8

output:

No

result:

ok Correct : No

Test #9:

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

input:

9 9

output:

Yes
<<<<<<<<^
v.v.v.v.^
v>.^.^.<^
v.<<<^>.^
v>.v.^.<^
v.<v>>>.^
v>.v.v.<^
v.^.^.^.^
v>>>>>>>>

result:

ok Correct

Test #10:

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

input:

3 9

output:

No

result:

ok Correct : No

Test #11:

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

input:

15 3

output:

No

result:

ok Correct : No

Test #12:

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

input:

5 11

output:

No

result:

ok Correct : No

Test #13:

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

input:

605 5

output:

No

result:

ok Correct : No

Test #14:

score: 0
Accepted
time: 25ms
memory: 5116kb

input:

999 999

output:

Yes
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

ok Correct

Test #15:

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

input:

9 999

output:

Yes
^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...

result:

ok Correct

Test #16:

score: 0
Accepted
time: 21ms
memory: 5060kb

input:

995 995

output:

Yes
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

ok Correct

Test #17:

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

input:

995 11

output:

Yes
<<<<<<<<<<^
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:

ok Correct

Test #18:

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

input:

897 27

output:

Yes
^>>>>>>>>>>>>>>>>>>>>>>>>>>
^.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:

ok Correct

Test #19:

score: 0
Accepted
time: 11ms
memory: 4720kb

input:

663 597

output:

Yes
^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...

result:

ok Correct

Test #20:

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

input:

879 45

output:

Yes
^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
^.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:

ok Correct

Test #21:

score: 0
Accepted
time: 12ms
memory: 4532kb

input:

587 827

output:

Yes
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

ok Correct

Test #22:

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

input:

863 815

output:

Yes
^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...

result:

ok Correct

Test #23:

score: 0
Accepted
time: 16ms
memory: 4692kb

input:

893 671

output:

Yes
^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...

result:

ok Correct

Test #24:

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

input:

1000 996

output:

No

result:

ok Correct : No

Test #25:

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

input:

997 990

output:

No

result:

ok Correct : No

Test #26:

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

input:

991 996

output:

No

result:

ok Correct : No

Test #27:

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

input:

995 999

output:

No

result:

ok Correct : No

Test #28:

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

input:

658 868

output:

No

result:

ok Correct : No

Test #29:

score: 0
Accepted
time: 3ms
memory: 4232kb

input:

155 773

output:

Yes
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

ok Correct

Test #30:

score: 0
Accepted
time: 3ms
memory: 4372kb

input:

365 605

output:

Yes
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

ok Correct

Test #31:

score: 0
Accepted
time: 3ms
memory: 4260kb

input:

491 185

output:

Yes
^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
^.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:

ok Correct

Test #32:

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

input:

748 562

output:

No

result:

ok Correct : No

Test #33:

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

input:

54 252

output:

No

result:

ok Correct : No

Test #34:

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

input:

889 799

output:

No

result:

ok Correct : No

Test #35:

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

input:

504 600

output:

No

result:

ok Correct : No

Test #36:

score: 0
Accepted
time: 7ms
memory: 4600kb

input:

527 701

output:

Yes
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

ok Correct

Test #37:

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

input:

195 813

output:

Yes
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...

result:

ok Correct

Test #38:

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

input:

232 402

output:

No

result:

ok Correct : No

Test #39:

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

input:

326 313

output:

No

result:

ok Correct : No

Test #40:

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

input:

594 628

output:

No

result:

ok Correct : No

Test #41:

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

input:

846 977

output:

No

result:

ok Correct : No

Test #42:

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

input:

795 894

output:

No

result:

ok Correct : No

Test #43:

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

input:

763 660

output:

No

result:

ok Correct : No

Test #44:

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

input:

707 116

output:

No

result:

ok Correct : No

Test #45:

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

input:

555 290

output:

No

result:

ok Correct : No

Test #46:

score: 0
Accepted
time: 14ms
memory: 4708kb

input:

891 597

output:

Yes
^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...

result:

ok Correct

Test #47:

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

input:

580 807

output:

No

result:

ok Correct : No

Test #48:

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

input:

1 1

output:

No

result:

ok Correct : No

Test #49:

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

input:

2 1

output:

No

result:

ok Correct : No

Test #50:

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

input:

1 3

output:

No

result:

ok Correct : No

Test #51:

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

input:

1 4

output:

No

result:

ok Correct : No

Test #52:

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

input:

5 1

output:

No

result:

ok Correct : No

Test #53:

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

input:

2 2

output:

Yes
<^
v>

result:

ok Correct

Test #54:

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

input:

2 3

output:

No

result:

ok Correct : No

Test #55:

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

input:

2 4

output:

No

result:

ok Correct : No

Test #56:

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

input:

2 5

output:

No

result:

ok Correct : No

Test #57:

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

input:

3 4

output:

No

result:

ok Correct : No

Test #58:

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

input:

5 3

output:

No

result:

ok Correct : No

Test #59:

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

input:

5 4

output:

No

result:

ok Correct : No

Test #60:

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

input:

5 5

output:

Yes
<<<<^
v.v.^
v>.<^
v.^.^
v>>>>

result:

ok Correct

Extra Test:

score: 0
Extra Test Passed