QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#818374 | #9884. Grid Construction | ucup-team004 | AC ✓ | 3ms | 5188kb | C++23 | 5.1kb | 2024-12-17 19:33:06 | 2024-12-17 19:33:07 |
Judging History
answer
#include <bits/stdc++.h>
using i64 = long long;
using u64 = unsigned long long;
using u32 = unsigned;
using u128 = unsigned __int128;
struct DSU {
std::vector<int> f, siz;
DSU() {}
DSU(int n) {
init(n);
}
void init(int n) {
f.resize(n);
std::iota(f.begin(), f.end(), 0);
siz.assign(n, 1);
}
int find(int x) {
while (x != f[x]) {
x = f[x] = f[f[x]];
}
return x;
}
bool same(int x, int y) {
return find(x) == find(y);
}
bool merge(int x, int y) {
x = find(x);
y = find(y);
if (x == y) {
return false;
}
siz[x] += siz[y];
f[y] = x;
return true;
}
int size(int x) {
return siz[find(x)];
}
};
std::vector<std::string> construct(int H, int W) {
std::vector s(H, std::string(W, '.'));
if (H > W) {
auto s1 = construct(W, H);
if (s1.empty()) {
return {};
}
for (int i = 0; i < W; i++) {
for (int j = 0; j < H; j++) {
char c = s1[i][j];
if (c == '<') {
c = '^';
} else if (c == '^') {
c = '<';
} else if (c == '>') {
c = 'v';
} else if (c == 'v') {
c = '>';
}
s[j][i] = c;
}
}
return s;
}
if (H == 2 && W == 2) {
s[0] = "<^";
s[1] = "v>";
return s;
}
if (H % 2 == 0 || W % 2 == 0) {
return {};
}
if (H % 3 == 1 || W % 3 == 1) {
return {};
}
if (H % 6 != W % 6) {
return {};
}
if (H == 3 && W == 3) {
s[0] = "<<^";
s[1] = "v.^";
s[2] = "v>>";
return s;
}
if (H == 5 && W == 5) {
s[0] = "<<<<^";
s[1] = "v.v.^";
s[2] = "v>.<^";
s[3] = "v.^.^";
s[4] = "v>>>>";
return s;
}
if (H <= 5) {
return {};
}
int x = 0, y = 0;
while (H > 11) {
for (int i = 0; i < W - 1; i++) {
s[x][y + i] = '<';
}
for (int i = 0; i < H - 1; i++) {
s[x + i][y + W - 1] = '^';
}
for (int i = W - 1; i > 0; i--) {
s[x + H - 1][y + i] = '>';
}
for (int i = H - 1; i > 0; i--) {
s[x + i][y] = 'v';
}
x++;
y++;
H -= 2;
W -= 2;
for (int i = 1; i < W; i += 2) {
s[x][y + i] = 'v';
s[x + H - 1][y + i] = '^';
}
for (int i = 1; i < H; i += 2) {
s[x + i][y] = '>';
s[x + i][y + W - 1] = '<';
}
x++;
y++;
H -= 2;
W -= 2;
for (int i = 1; i < W; i += 2) {
s[x][y + i] = '^';
s[x + H - 1][y + i] = 'v';
}
for (int i = 1; i < H; i += 2) {
s[x + i][y] = '<';
s[x + i][y + W - 1] = '>';
}
x++;
y++;
H -= 2;
W -= 2;
}
for (int i = 0; i < W - 1; i++) {
s[x][y + i] = '<';
}
for (int i = 0; i < H - 1; i++) {
s[x + i][y + W - 1] = '^';
}
for (int i = W - 1; i > 0; i--) {
s[x + H - 1][y + i] = '>';
}
for (int i = H - 1; i > 0; i--) {
s[x + i][y] = 'v';
}
x++;
y++;
H -= 2;
W -= 2;
for (int i = 1; i < W; i += 2) {
s[x][y + i] = 'v';
s[x + H - 1][y + i] = '^';
}
for (int i = 1; i < H; i += 2) {
s[x + i][y] = '>';
s[x + i][y + W - 1] = '<';
}
x++;
y++;
H -= 2;
W -= 2;
if (H == 5) {
for (int i = 0; i < W; i++) {
s[x][y + i] = ".<v>.^"[i % 6];
s[x + 1][y + i] = i < W - 1 ? "^.v.<<"[i % 6] : '^';
s[x + 2][y + i] = i < 2 ? '>' : i >= W - 2 ? '<' : "^>.<v."[i % 6];
s[x + 3][y + i] = i == 0 ? 'v' : ">.^.v>"[i % 6];
s[x + 4][y + i] = ".<^>.v"[i % 6];
}
} else {
for (int i = 0; i < W; i++) {
s[x][y + i] = i < W - 4 ? ".^.<v>"[i % 6] : ".^" [i % 2];
s[x + 1][y + i] = i < W - 4 ? "<^>.v."[i % 6] : '>';
s[x + 2][y + i] = i < W - 4 ? ".^.<v>"[i % 6] : ".v" [i % 2];
s[x + 3][y + i] = i < W - 4 ? "<^>.v."[i % 6] : ".<v>"[i - W + 4];
s[x + 4][y + i] = i == W - 2 ? 'v' : ".^"[i % 2];
s[x + 5][y + i] = i == W - 2 ? 'v' : i == W - 1 ? '>' : '<';
s[x + 6][y + i] = ".v"[i % 2];
}
}
return s;
}
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int H, W;
std::cin >> H >> W;
auto ans = construct(H, W);
if (ans.empty()) {
std::cout << "No\n";
return 0;
}
std::cout << "Yes\n";
for (int i = 0; i < H; i++) {
std::cout << ans[i] << "\n";
}
return 0;
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3588kb
input:
3 3
output:
Yes <<^ v.^ v>>
result:
ok Correct
Test #2:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
4 4
output:
No
result:
ok Correct : No
Test #3:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
4 5
output:
No
result:
ok Correct : No
Test #4:
score: 0
Accepted
time: 0ms
memory: 3556kb
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: 4132kb
input:
1000 1000
output:
No
result:
ok Correct : No
Test #6:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
6 6
output:
No
result:
ok Correct : No
Test #7:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
7 7
output:
No
result:
ok Correct : No
Test #8:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
8 8
output:
No
result:
ok Correct : No
Test #9:
score: 0
Accepted
time: 0ms
memory: 3584kb
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: 3612kb
input:
3 9
output:
No
result:
ok Correct : No
Test #11:
score: 0
Accepted
time: 0ms
memory: 3496kb
input:
15 3
output:
No
result:
ok Correct : No
Test #12:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
5 11
output:
No
result:
ok Correct : No
Test #13:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
605 5
output:
No
result:
ok Correct : No
Test #14:
score: 0
Accepted
time: 2ms
memory: 3984kb
input:
999 999
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #15:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
9 999
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #16:
score: 0
Accepted
time: 2ms
memory: 4072kb
input:
995 995
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #17:
score: 0
Accepted
time: 0ms
memory: 3804kb
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 ^>>>>>.^...
result:
ok Correct
Test #18:
score: 0
Accepted
time: 0ms
memory: 3684kb
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: 2ms
memory: 4320kb
input:
663 597
output:
Yes ^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...
result:
ok Correct
Test #20:
score: 0
Accepted
time: 1ms
memory: 3688kb
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: 0ms
memory: 3764kb
input:
587 827
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #22:
score: 0
Accepted
time: 3ms
memory: 4724kb
input:
863 815
output:
Yes ^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...
result:
ok Correct
Test #23:
score: 0
Accepted
time: 2ms
memory: 4316kb
input:
893 671
output:
Yes ^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...
result:
ok Correct
Test #24:
score: 0
Accepted
time: 1ms
memory: 5188kb
input:
1000 996
output:
No
result:
ok Correct : No
Test #25:
score: 0
Accepted
time: 1ms
memory: 5180kb
input:
997 990
output:
No
result:
ok Correct : No
Test #26:
score: 0
Accepted
time: 1ms
memory: 4144kb
input:
991 996
output:
No
result:
ok Correct : No
Test #27:
score: 0
Accepted
time: 1ms
memory: 4136kb
input:
995 999
output:
No
result:
ok Correct : No
Test #28:
score: 0
Accepted
time: 1ms
memory: 3708kb
input:
658 868
output:
No
result:
ok Correct : No
Test #29:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
155 773
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #30:
score: 0
Accepted
time: 0ms
memory: 3932kb
input:
365 605
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #31:
score: 0
Accepted
time: 0ms
memory: 3792kb
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: 1ms
memory: 4172kb
input:
748 562
output:
No
result:
ok Correct : No
Test #33:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
54 252
output:
No
result:
ok Correct : No
Test #34:
score: 0
Accepted
time: 1ms
memory: 4636kb
input:
889 799
output:
No
result:
ok Correct : No
Test #35:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
504 600
output:
No
result:
ok Correct : No
Test #36:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
527 701
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #37:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
195 813
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #38:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
232 402
output:
No
result:
ok Correct : No
Test #39:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
326 313
output:
No
result:
ok Correct : No
Test #40:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
594 628
output:
No
result:
ok Correct : No
Test #41:
score: 0
Accepted
time: 1ms
memory: 3824kb
input:
846 977
output:
No
result:
ok Correct : No
Test #42:
score: 0
Accepted
time: 1ms
memory: 3824kb
input:
795 894
output:
No
result:
ok Correct : No
Test #43:
score: 0
Accepted
time: 1ms
memory: 4164kb
input:
763 660
output:
No
result:
ok Correct : No
Test #44:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
707 116
output:
No
result:
ok Correct : No
Test #45:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
555 290
output:
No
result:
ok Correct : No
Test #46:
score: 0
Accepted
time: 2ms
memory: 4168kb
input:
891 597
output:
Yes ^>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...
result:
ok Correct
Test #47:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
580 807
output:
No
result:
ok Correct : No
Test #48:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
1 1
output:
No
result:
ok Correct : No
Test #49:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
2 1
output:
No
result:
ok Correct : No
Test #50:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
1 3
output:
No
result:
ok Correct : No
Test #51:
score: 0
Accepted
time: 0ms
memory: 3476kb
input:
1 4
output:
No
result:
ok Correct : No
Test #52:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
5 1
output:
No
result:
ok Correct : No
Test #53:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
2 2
output:
Yes <^ v>
result:
ok Correct
Test #54:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
2 3
output:
No
result:
ok Correct : No
Test #55:
score: 0
Accepted
time: 0ms
memory: 3492kb
input:
2 4
output:
No
result:
ok Correct : No
Test #56:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
2 5
output:
No
result:
ok Correct : No
Test #57:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
3 4
output:
No
result:
ok Correct : No
Test #58:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
5 3
output:
No
result:
ok Correct : No
Test #59:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
5 4
output:
No
result:
ok Correct : No
Test #60:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
5 5
output:
Yes <<<<^ v.v.^ v>.<^ v.^.^ v>>>>
result:
ok Correct
Extra Test:
score: 0
Extra Test Passed