QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#814363#9884. Grid Constructionucup-team3727#AC ✓83ms22020kbPython311.7kb2024-12-14 17:00:002024-12-14 17:00:02

詳細信息

Test #1:

score: 100
Accepted
time: 13ms
memory: 11000kb

input:

3 3

output:

Yes
<<^
v.^
v>>

result:

ok Correct

Test #2:

score: 0
Accepted
time: 4ms
memory: 11152kb

input:

4 4

output:

No

result:

ok Correct : No

Test #3:

score: 0
Accepted
time: 9ms
memory: 11064kb

input:

4 5

output:

No

result:

ok Correct : No

Test #4:

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

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: 9ms
memory: 11052kb

input:

1000 1000

output:

No

result:

ok Correct : No

Test #6:

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

input:

6 6

output:

No

result:

ok Correct : No

Test #7:

score: 0
Accepted
time: 13ms
memory: 11116kb

input:

7 7

output:

No

result:

ok Correct : No

Test #8:

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

input:

8 8

output:

No

result:

ok Correct : No

Test #9:

score: 0
Accepted
time: 13ms
memory: 11060kb

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: 11ms
memory: 11100kb

input:

3 9

output:

No

result:

ok Correct : No

Test #11:

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

input:

15 3

output:

No

result:

ok Correct : No

Test #12:

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

input:

5 11

output:

No

result:

ok Correct : No

Test #13:

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

input:

605 5

output:

No

result:

ok Correct : No

Test #14:

score: 0
Accepted
time: 57ms
memory: 19984kb

input:

999 999

output:

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

result:

ok Correct

Test #15:

score: 0
Accepted
time: 18ms
memory: 11112kb

input:

9 999

output:

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

result:

ok Correct

Test #16:

score: 0
Accepted
time: 63ms
memory: 19880kb

input:

995 995

output:

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

result:

ok Correct

Test #17:

score: 0
Accepted
time: 13ms
memory: 11360kb

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

result:

ok Correct

Test #18:

score: 0
Accepted
time: 13ms
memory: 11404kb

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...

result:

ok Correct

Test #19:

score: 0
Accepted
time: 46ms
memory: 17200kb

input:

663 597

output:

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

result:

ok Correct

Test #20:

score: 0
Accepted
time: 20ms
memory: 11660kb

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: 39ms
memory: 18524kb

input:

587 827

output:

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

result:

ok Correct

Test #22:

score: 0
Accepted
time: 83ms
memory: 22020kb

input:

863 815

output:

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

result:

ok Correct

Test #23:

score: 0
Accepted
time: 74ms
memory: 20484kb

input:

893 671

output:

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

result:

ok Correct

Test #24:

score: 0
Accepted
time: 8ms
memory: 11032kb

input:

1000 996

output:

No

result:

ok Correct : No

Test #25:

score: 0
Accepted
time: 15ms
memory: 11032kb

input:

997 990

output:

No

result:

ok Correct : No

Test #26:

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

input:

991 996

output:

No

result:

ok Correct : No

Test #27:

score: 0
Accepted
time: 5ms
memory: 11216kb

input:

995 999

output:

No

result:

ok Correct : No

Test #28:

score: 0
Accepted
time: 10ms
memory: 10996kb

input:

658 868

output:

No

result:

ok Correct : No

Test #29:

score: 0
Accepted
time: 10ms
memory: 12812kb

input:

155 773

output:

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

result:

ok Correct

Test #30:

score: 0
Accepted
time: 17ms
memory: 14272kb

input:

365 605

output:

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

result:

ok Correct

Test #31:

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

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: 15ms
memory: 11132kb

input:

748 562

output:

No

result:

ok Correct : No

Test #33:

score: 0
Accepted
time: 15ms
memory: 11108kb

input:

54 252

output:

No

result:

ok Correct : No

Test #34:

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

input:

889 799

output:

No

result:

ok Correct : No

Test #35:

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

input:

504 600

output:

No

result:

ok Correct : No

Test #36:

score: 0
Accepted
time: 35ms
memory: 16644kb

input:

527 701

output:

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

result:

ok Correct

Test #37:

score: 0
Accepted
time: 15ms
memory: 12436kb

input:

195 813

output:

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

result:

ok Correct

Test #38:

score: 0
Accepted
time: 13ms
memory: 11064kb

input:

232 402

output:

No

result:

ok Correct : No

Test #39:

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

input:

326 313

output:

No

result:

ok Correct : No

Test #40:

score: 0
Accepted
time: 15ms
memory: 10996kb

input:

594 628

output:

No

result:

ok Correct : No

Test #41:

score: 0
Accepted
time: 10ms
memory: 11048kb

input:

846 977

output:

No

result:

ok Correct : No

Test #42:

score: 0
Accepted
time: 10ms
memory: 11096kb

input:

795 894

output:

No

result:

ok Correct : No

Test #43:

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

input:

763 660

output:

No

result:

ok Correct : No

Test #44:

score: 0
Accepted
time: 15ms
memory: 11036kb

input:

707 116

output:

No

result:

ok Correct : No

Test #45:

score: 0
Accepted
time: 15ms
memory: 11068kb

input:

555 290

output:

No

result:

ok Correct : No

Test #46:

score: 0
Accepted
time: 68ms
memory: 19248kb

input:

891 597

output:

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

result:

ok Correct

Test #47:

score: 0
Accepted
time: 9ms
memory: 11112kb

input:

580 807

output:

No

result:

ok Correct : No

Test #48:

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

input:

1 1

output:

No

result:

ok Correct : No

Test #49:

score: 0
Accepted
time: 9ms
memory: 11220kb

input:

2 1

output:

No

result:

ok Correct : No

Test #50:

score: 0
Accepted
time: 15ms
memory: 11032kb

input:

1 3

output:

No

result:

ok Correct : No

Test #51:

score: 0
Accepted
time: 10ms
memory: 11000kb

input:

1 4

output:

No

result:

ok Correct : No

Test #52:

score: 0
Accepted
time: 15ms
memory: 11184kb

input:

5 1

output:

No

result:

ok Correct : No

Test #53:

score: 0
Accepted
time: 15ms
memory: 11100kb

input:

2 2

output:

Yes
<^
v>

result:

ok Correct

Test #54:

score: 0
Accepted
time: 15ms
memory: 11220kb

input:

2 3

output:

No

result:

ok Correct : No

Test #55:

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

input:

2 4

output:

No

result:

ok Correct : No

Test #56:

score: 0
Accepted
time: 15ms
memory: 11104kb

input:

2 5

output:

No

result:

ok Correct : No

Test #57:

score: 0
Accepted
time: 15ms
memory: 11000kb

input:

3 4

output:

No

result:

ok Correct : No

Test #58:

score: 0
Accepted
time: 4ms
memory: 11136kb

input:

5 3

output:

No

result:

ok Correct : No

Test #59:

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

input:

5 4

output:

No

result:

ok Correct : No

Test #60:

score: 0
Accepted
time: 15ms
memory: 11116kb

input:

5 5

output:

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

result:

ok Correct

Extra Test:

score: 0
Extra Test Passed