QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#815478 | #9884. Grid Construction | ucup-team5234# | AC ✓ | 10ms | 5284kb | C++23 | 7.5kb | 2024-12-15 14:51:04 | 2024-12-15 14:51:05 |
Judging History
answer
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for(int i = 0; i < n; i ++)
vector<string> solve9(int w) {
vector<string> s(9, string(w, '.'));
vector<string> t(9, string(9, '.'));
vector<string> re(9, string(6, '.'));
s[0] = "<<<<<<<<^";
s[1] = "v.v.v.v.^";
s[2] = "v>.^.^.<^";
s[3] = "v.<^>>>.^";
s[4] = "v>.^.v.<^";
s[5] = "v.<<<v>.^";
s[6] = "v>.v.v.<^";
s[7] = "v.^.^.^.^";
s[8] = "v>>>>>>>>";
re[0] = "<<<<<<";
re[1] = "v.v.v.";
re[2] = ".<v>.^";
re[3] = ">.v.<^";
re[4] = ".^.^.^";
re[5] = ">>>>>>";
re[6] = ".v.v.v";
re[7] = "^.^.^.";
re[8] = ">>>>>>";
while((int)s[0].size() < w){
int a = s[0].size()-3;
rep(i, 9) s[i] = s[i].substr(0, a) + re[i] + s[i].substr(a);
}
return s;
}
vector<string> solve11(int w) {
vector<string> s(11, string(w, '.'));
vector<string> re(11, string(6, '.'));
s[0] = "<<<<<<<<<<^";
s[1] = "v.v.v.v.v.^";
s[2] = "v>.^.<v>.<^";
s[3] = "v.<^>.v.^.^";
s[4] = "v>.^.^.<<<^";
s[5] = "v.<^>>>.v.^";
s[6] = "v>.^.v.^.<^";
s[7] = "v.<<<v>>>.^";
s[8] = "v>.v.v.v.<^";
s[9] = "v.^.^.^.^.^";
s[10]= "v>>>>>>>>>>";
re[0] = "<<<<<<";
re[1] = ".v.v.v";
re[2] = "<v>.^.";
re[3] = ".v.<^>";
re[4] = "<v>.^.";
re[5] = ".v.<^>";
re[6] = "^.^.^.";
re[7] = ">>>>>>";
re[8] = "v.v.v.";
re[9] = ".^.^.^";
re[10]= ">>>>>>";
while((int)s[0].size() < w){
int a = s[0].size()-2;
rep(i, 11) s[i] = s[i].substr(0, a) + re[i] + s[i].substr(a);
}
return s;
}
bool ok(vector<string> s) {
// for(string e : s) cout << e<< endl;
int h = s.size();
int w = s[0].size();
int dy[4] = {-1, 0, 0, 1};
int dx[4] = {0, -1, 1, 0};
rep(i, h) rep(j, w) {
rep(k, 4) {
bool f = 0;
if(s[i][j] != '.') {
if(k == 0) {
if(s[i][j] != 'v') f = 1;
} else if(k == 1) {
if(s[i][j] != '>') f = 1;
} else if(k == 2) {
if(s[i][j] != '<') f = 1;
} else {
if(s[i][j] != '^') f = 1;
}
}
int y = i + dy[k];
int x = j + dx[k];
if(y >= 0 and y < h and x >= 0 and x < w and s[y][x] != '.') {
if(k == 0) {
if(s[y][x] != '^') f ^= 1;
} else if(k == 1) {
if(s[y][x] != '<') f ^= 1;
} else if(k == 2) {
if(s[y][x] != '>') f ^= 1;
} else {
if(s[y][x] != 'v') f ^= 1;
}
}
// if(!f)cout << i << " " << j << " " << y << " " << x << " " << k << endl;
if(!f) return false;
}
}
return true;
}
void solve() {
int h, w;
cin >> h >> w;
if(h % 6 != w % 6) {
cout << "No" << endl;
} else if(h % 3 == 1) {
cout << "No" << endl;
} else if(h == 2) {
cout << "Yes" << endl;
cout << "<^" << endl;
cout << "v>" << endl;
} else if(h % 6 == 5 or h % 6 == 3) {
int base = 0;
vector<string> ans(h, string(w, '.'));
while(min(h, w) >= 12 or (h == w and h >= 6)) {
rep(i, w - 1) {
ans[base][base + i] = '<';
ans[h - 1 + base][w - 1 + base - i] = '>';
}
rep(i, h - 1) {
ans[base + i][w - 1 + base] = '^';
ans[h - 1 + base - i][base] = 'v';
}
for(int ii = 2; ii < w - 2; ii += 2) {
int i = base + ii;
ans[base + 1][i] = 'v';
ans[h + base - 2][i] = '^';
}
for(int ii = 2; ii < h - 2; ii += 2) {
int i = base + ii;
ans[i][base + 1] = '>';
ans[i][w + base - 2] = '<';
}
for(int ii = 3; ii < w - 3; ii += 2) {
int i = ii + base;
ans[base + 2][i] = '^';
ans[h + base - 3][i] = 'v';
}
for(int ii = 3; ii < h - 3; ii += 2) {
int i = ii + base;
ans[i][base + 2] = '<';
ans[i][w + base - 3] = '>';
}
base += 3;
h -= 6;
w -= 6;
}
if(h == 3 and w == 3) {
ans[base][base] = '<';
ans[base][base + 1] = '<';
ans[base][base + 2] = '^';
ans[base + 1][base + 2] = '^';
ans[base + 2][base + 2] = '>';
ans[base + 2][base + 1] = '>';
ans[base + 2][base] = 'v';
ans[base + 1][base] = 'v';
} else if (h == 5 and w == 5) {
rep(i, w - 1) {
ans[base][base + i] = '<';
ans[h - 1 + base][w - 1 + base - i] = '>';
}
rep(i, h - 1) {
ans[base + i][w - 1 + base] = '^';
ans[h - 1 + base - i][base] = 'v';
}
for(int ii = 2; ii < w - 2; ii += 2) {
int i = base + ii;
ans[base + 1][i] = 'v';
ans[h + base - 2][i] = '^';
}
for(int ii = 2; ii < h - 2; ii += 2) {
int i = base + ii;
ans[i][base + 1] = '>';
ans[i][w + base - 2] = '<';
}
} else if (min(h, w) == 9) {
assert(max(h, w) != min(h, w));
if(h < w) {
auto ret = solve9(w);
rep(i, h) rep(j, w) ans[base + i][base + j] = ret[i][j];
} else {
auto ret = solve9(h);
rep(i, w) rep(j, h) {
if(ret[i][j] == '<') {
ret[i][j] = '^';
} else if(ret[i][j] == '^') {
ret[i][j] = '<';
} else if(ret[i][j] == 'v') {
ret[i][j] = '>';
} else if(ret[i][j] == '>'){
ret[i][j] = 'v';
}
}
rep(i, h) rep(j, w) ans[base + i][base + j] = ret[j][i];
}
} else if (min(h, w) == 11) {
assert(max(h, w) != min(h, w));
if(h < w) {
auto ret = solve11(w);
rep(i, h) rep(j, w) ans[base + i][base + j] = ret[i][j];
} else {
auto ret = solve11(h);
rep(i, w) rep(j, h) {
if(ret[i][j] == '<') {
ret[i][j] = '^';
} else if(ret[i][j] == '^') {
ret[i][j] = '<';
} else if(ret[i][j] == 'v') {
ret[i][j] = '>';
} else if(ret[i][j] == '>'){
ret[i][j] = 'v';
}
}
rep(i, h) rep(j, w) ans[base + i][base + j] = ret[j][i];
}
} else {
cout << "No" << endl;
return;
}
cout << "Yes" << endl;
assert(ok(ans));
for(string s : ans) {
cout << s << endl;
}
} else cout << "No" << endl;
}
int main() {
int t; t = 1;
rep(i, t) solve();
return 0;
}
这程序好像有点Bug,我给组数据试试?
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 3608kb
input:
3 3
output:
Yes <<^ v.^ v>>
result:
ok Correct
Test #2:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
4 4
output:
No
result:
ok Correct : No
Test #3:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
4 5
output:
No
result:
ok Correct : No
Test #4:
score: 0
Accepted
time: 0ms
memory: 3608kb
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: 3556kb
input:
1000 1000
output:
No
result:
ok Correct : No
Test #6:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
6 6
output:
No
result:
ok Correct : No
Test #7:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
7 7
output:
No
result:
ok Correct : No
Test #8:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
8 8
output:
No
result:
ok Correct : No
Test #9:
score: 0
Accepted
time: 0ms
memory: 3608kb
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: 3544kb
input:
3 9
output:
No
result:
ok Correct : No
Test #11:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
15 3
output:
No
result:
ok Correct : No
Test #12:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
5 11
output:
No
result:
ok Correct : No
Test #13:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
605 5
output:
No
result:
ok Correct : No
Test #14:
score: 0
Accepted
time: 7ms
memory: 5212kb
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: 10ms
memory: 5284kb
input:
995 995
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #17:
score: 0
Accepted
time: 2ms
memory: 3992kb
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: 0ms
memory: 4148kb
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.v.v...
result:
ok Correct
Test #19:
score: 0
Accepted
time: 6ms
memory: 4112kb
input:
663 597
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #20:
score: 0
Accepted
time: 0ms
memory: 4204kb
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>.^.^.^.^.^.^.^.^.^.^.^.^.^.^.^.^.^.<^>.^ v>.v.<<<<<<<<<<<<<<<...
result:
ok Correct
Test #21:
score: 0
Accepted
time: 3ms
memory: 4276kb
input:
587 827
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #22:
score: 0
Accepted
time: 7ms
memory: 4828kb
input:
863 815
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #23:
score: 0
Accepted
time: 6ms
memory: 4672kb
input:
893 671
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #24:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
1000 996
output:
No
result:
ok Correct : No
Test #25:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
997 990
output:
No
result:
ok Correct : No
Test #26:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
991 996
output:
No
result:
ok Correct : No
Test #27:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
995 999
output:
No
result:
ok Correct : No
Test #28:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
658 868
output:
No
result:
ok Correct : No
Test #29:
score: 0
Accepted
time: 2ms
memory: 4316kb
input:
155 773
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #30:
score: 0
Accepted
time: 4ms
memory: 3996kb
input:
365 605
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #31:
score: 0
Accepted
time: 2ms
memory: 3936kb
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.v....
result:
ok Correct
Test #32:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
748 562
output:
No
result:
ok Correct : No
Test #33:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
54 252
output:
No
result:
ok Correct : No
Test #34:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
889 799
output:
No
result:
ok Correct : No
Test #35:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
504 600
output:
No
result:
ok Correct : No
Test #36:
score: 0
Accepted
time: 6ms
memory: 4216kb
input:
527 701
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #37:
score: 0
Accepted
time: 3ms
memory: 4176kb
input:
195 813
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #38:
score: 0
Accepted
time: 0ms
memory: 3512kb
input:
232 402
output:
No
result:
ok Correct : No
Test #39:
score: 0
Accepted
time: 0ms
memory: 3492kb
input:
326 313
output:
No
result:
ok Correct : No
Test #40:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
594 628
output:
No
result:
ok Correct : No
Test #41:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
846 977
output:
No
result:
ok Correct : No
Test #42:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
795 894
output:
No
result:
ok Correct : No
Test #43:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
763 660
output:
No
result:
ok Correct : No
Test #44:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
707 116
output:
No
result:
ok Correct : No
Test #45:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
555 290
output:
No
result:
ok Correct : No
Test #46:
score: 0
Accepted
time: 2ms
memory: 4424kb
input:
891 597
output:
Yes <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
result:
ok Correct
Test #47:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
580 807
output:
No
result:
ok Correct : No
Test #48:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
1 1
output:
No
result:
ok Correct : No
Test #49:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
2 1
output:
No
result:
ok Correct : No
Test #50:
score: 0
Accepted
time: 0ms
memory: 3488kb
input:
1 3
output:
No
result:
ok Correct : No
Test #51:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
1 4
output:
No
result:
ok Correct : No
Test #52:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
5 1
output:
No
result:
ok Correct : No
Test #53:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
2 2
output:
Yes <^ v>
result:
ok Correct
Test #54:
score: 0
Accepted
time: 0ms
memory: 3492kb
input:
2 3
output:
No
result:
ok Correct : No
Test #55:
score: 0
Accepted
time: 0ms
memory: 3516kb
input:
2 4
output:
No
result:
ok Correct : No
Test #56:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
2 5
output:
No
result:
ok Correct : No
Test #57:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
3 4
output:
No
result:
ok Correct : No
Test #58:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
5 3
output:
No
result:
ok Correct : No
Test #59:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
5 4
output:
No
result:
ok Correct : No
Test #60:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
5 5
output:
Yes <<<<^ v.v.^ v>.<^ v.^.^ v>>>>
result:
ok Correct
Extra Test:
score: 0
Extra Test Passed