QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#819287#9884. Grid ConstructioncooluoAC ✓26ms4752kbC++235.6kb2024-12-18 14:48:572024-12-18 14:48:59

Judging History

This is the latest submission verdict.

  • [2024-12-18 14:48:59]
  • Judged
  • Verdict: AC
  • Time: 26ms
  • Memory: 4752kb
  • [2024-12-18 14:48:57]
  • Submitted

answer

#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define ul unsigned ll
#define LL __int128_t
#define db double
#define DB long db
#define pii pair<int, int>
#define pil pair<int, ll>
#define fi first
#define se second
#define mkpr make_pair
#define vi vector<int>
#define vii vector<pii>
#define vil vector<pil>
#define eb emplace_back
#define all(c) (c).begin(), (c).end()
#define bit(x) (1 << (x))
#define bin(s, x) ((s) >> (x) & 1)
#define mem(a, x) memset(a, x, sizeof(a))
#define req(i, l, r) for (int i(l), i##End(r); i < i##End; i = -~i)
#define qer(i, r, l) for (int i(r), i##End(l); i > i##End; i = ~-i)
#define rep(i, l, r) for (int i(l), i##End(r); i <= i##End; i = -~i)
#define per(i, r, l) for (int i(r), i##End(l); i >= i##End; i = ~-i)

#ifdef JYR
#define errs(x) fputs(x "\n", stderr)
#define errm(x, ...) fprintf(stderr, x, ##__VA_ARGS__)
#else
#define errs(x) 0
#define errm(x, ...) 0
#endif

template<typename T, typename U> void chkmx(T &_a, U _b) { if (_a < _b) _a = _b; }
template<typename T, typename U> void chkmn(T &_a, U _b) { if (_a > _b) _a = _b; }
template<typename T> T sq(T x) { return x * x; }

bool Mbe;

// #define MC

#define N 1005
#define mod 998244353
#define inf 0x3f3f3f3f
#define INF 0x3f3f3f3f3f3f3f3f

int n, m, k;
char s[N][N];
bool TAG;
char t1[][10] = {
    "<<<<<<<<<",
    "v.v.v.v.v",
    "v>.^.^.^.",
    "v.<<<<<^>",
    "v>.v.v.^.",
    "v.<v>.<^>",
    "v>.v.^.^.",
    "v.<v>>>>>",
    "v>.v.v.v.",
    "v.^.^.^.^",
    "v>>>>>>>>"
}, t2[][7] = {
    "<<<<<<",
    ".v.v.v",
    "^.^.^.",
    ">>>>>>",
    "v.v.v.",
    ".^.<v>",
    "<^>.v.",
    ".^.<v>",
    "<^>.v.",
    ".^.^.^",
    ">>>>>>"
}, t3[][3] = {
    "<^",
    ".^",
    "<^",
    ".^",
    "<^",
    ".^",
    "<^",
    ".^",
    "<^",
    ".^",
    ">>"
};

void slv(int x, int y) {
    errm("slv(%d, %d)\n", x, y);
    int x1 = k * 3 + 1, y1 = k * 3 + 1;
    int x2 = n - x1 + 1, y2 = m - y1 + 1;
    errm("(%d %d) (%d %d)\n", x1, y1, x2, y2);
    auto t = [&](int i, int j) -> char& { return s[x1 + i - 1][y1 + j - 1]; };
    if (x == 9) {
        req(j, 0, 7) s[x1][y1 + j] = '<';
        req(j, 1, 7) s[x2][y1 + j] = '>';
        req(i, 0, 8) s[x1 + i + 1][y1] = 'v', s[x1 + i][y2] = '^';
        s[x2][y2 - 1] = s[x2][y2] = '>';
        s[x1][y2 - 1] = s[x1 + 2][y2 - 1] = s[x1 + 4][y2 - 1] = s[x1 + 6][y2 - 1] = '<';
        t(3, 4) = t(3, 6) = t(4, 6) = t(5, 6) = t(8, 3) = t(8, 5) = t(8, 7) = '^';
        t(3, 2) = t(4, 7) = t(5, 2) = t(6, 5) = t(6, 6) = t(6, 7) = t(7, 2) = '>';
        t(2, 3) = t(2, 5) = t(2, 7) = t(5, 4) = t(6, 4) = t(7, 4) = t(7, 6) = 'v';
        t(4, 3) = t(4, 4) = t(4, 5) = t(6, 3) = '<';
        y1 += 7;
        rep(i, 1, (y - 9) / 6) {
            t(1, 1) = t(1, 2) = t(1, 3) = t(1, 4) = t(1, 5) = t(1, 6) = t(6, 4) = t(7, 1) = '<';
            t(4, 1) = t(4, 2) = t(4, 3) = t(4, 4) = t(4, 5) = t(4, 6) = t(6, 6) =
            t(7, 3) = t(9, 1) = t(9, 2) = t(9, 3) = t(9, 4) = t(9, 5) = t(9, 6) = '>';
            t(2, 2) = t(2, 4) = t(2, 6) = t(5, 1) = t(5, 3) = t(5, 5) = t(6, 5) = t(7, 5) = 'v';
            t(3, 1) = t(3, 3) = t(3, 5) = t(6, 2) = t(7, 2) = t(8, 2) = t(8, 4) = t(8, 6) = '^';
            y1 += 6;
        }
        return;
    }
    if (x == 11) {
        req(i, 0, 11) req(j, 0, 9) t(i + 1, j + 1) = t1[i][j];
        req(i, 0, 11) req(j, 0, 2) s[x1 + i][y2 - 1 + j] = t3[i][j];
        y1 += 9;
        rep(_, 1, (y - 11) / 6) {
            req(i, 0, 11) req(j, 0, 6) t(i + 1, j + 1) = t2[i][j];
            y1 += 6;
        }
        return;
    }
    req(i, x1, x2) s[i + 1][y1] = 'v', s[i][y2] = '^';
    req(j, y1, y2) s[x1][j] = '<', s[x2][j + 1] = '>';
    for (int i = x1 + 2; i < x2; i += 2) s[i][y1 + 1] = '>', s[i][y2 - 1] = '<';
    for (int j = y1 + 2; j < y2; j += 2) s[x1 + 1][j] = 'v', s[x2 - 1][j] = '^';
    for (int i = x1 + 3; i < x2 - 1; i += 2) s[i][y1 + 2] = '<', s[i][y2 - 2] = '>';
    for (int j = y1 + 3; j < y2 - 1; j += 2) s[x1 + 2][j] = '^', s[x2 - 2][j] = 'v';
    k++, slv(x - 6, y - 6);
}

void mslv() {
    scanf("%d%d", &n, &m);
    if (n > m) swap(n, m), TAG = 1;
    if (n == 2 && m == 2) {
        puts("Yes\n<^\nv>");
        return;
    }
    if (n == 3 && m == 3) {
        puts("Yes\n<<^\nv.^\nv>>");
        return;
    }
    if (n == 5 && m == 5) {
        puts("Yes\n<<<<^\nv.v.^\nv>.<^\nv.^.^\nv>>>>");
        return;
    }
    if (int x = n % 6, y = m % 6; !((x == 3 && y == 3) || (x == 5 && y == 5)) || n == 3 || n == 5) {
        puts("No");
        return;
    }
    slv(n, m), puts("Yes");
    rep(i, 1, n) rep(j, 1, m) if (!s[i][j]) s[i][j] = '.';
    if (TAG) {
        auto trans = [](char c) {
            switch (c) {
            case '.': return '.';
            case '<': return '^';
            case '^': return '>';
            case '>': return 'v';
            case 'v': return '<';
            }
            return '\n';
        };
        rep(j, 1, m) {
            per(i, n, 1) printf("%c", trans(s[i][j]));
            puts("");
        }
    } else rep(i, 1, n) {
        rep(j, 1, m) printf("%c", s[i][j]);
        puts("");
    }
}

void sprw() {}

void mprw() {}

bool Med;

int main() {
    #ifdef JYR
    freopen("Test.in", "r", stdin);
    freopen("Test.out", "w", stdout);
    #endif
    mprw();
    #ifdef MC
    int _; scanf("%d", &_);
    while (_--) sprw(), mslv();
    #else
    mslv();
    #endif
    errm("%.3lfMB %.0lfms\n", abs(&Med - &Mbe) / 1048576., clock() * 1000. / CLOCKS_PER_SEC);
    return 0;
}

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

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3544kb

input:

3 3

output:

Yes
<<^
v.^
v>>

result:

ok Correct

Test #2:

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

input:

4 4

output:

No

result:

ok Correct : No

Test #3:

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

input:

4 5

output:

No

result:

ok Correct : No

Test #4:

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

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: 3772kb

input:

1000 1000

output:

No

result:

ok Correct : No

Test #6:

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

input:

6 6

output:

No

result:

ok Correct : No

Test #7:

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

input:

7 7

output:

No

result:

ok Correct : No

Test #8:

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

input:

8 8

output:

No

result:

ok Correct : No

Test #9:

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

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: 3708kb

input:

3 9

output:

No

result:

ok Correct : No

Test #11:

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

input:

15 3

output:

No

result:

ok Correct : No

Test #12:

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

input:

5 11

output:

No

result:

ok Correct : No

Test #13:

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

input:

605 5

output:

No

result:

ok Correct : No

Test #14:

score: 0
Accepted
time: 22ms
memory: 4752kb

input:

999 999

output:

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

result:

ok Correct

Test #15:

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

input:

9 999

output:

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

result:

ok Correct

Test #16:

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

input:

995 995

output:

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

result:

ok Correct

Test #17:

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

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

result:

ok Correct

Test #18:

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

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

result:

ok Correct

Test #19:

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

input:

663 597

output:

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

result:

ok Correct

Test #20:

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

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: 13ms
memory: 4244kb

input:

587 827

output:

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

result:

ok Correct

Test #22:

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

input:

863 815

output:

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

result:

ok Correct

Test #23:

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

input:

893 671

output:

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

result:

ok Correct

Test #24:

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

input:

1000 996

output:

No

result:

ok Correct : No

Test #25:

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

input:

997 990

output:

No

result:

ok Correct : No

Test #26:

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

input:

991 996

output:

No

result:

ok Correct : No

Test #27:

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

input:

995 999

output:

No

result:

ok Correct : No

Test #28:

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

input:

658 868

output:

No

result:

ok Correct : No

Test #29:

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

input:

155 773

output:

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

result:

ok Correct

Test #30:

score: 0
Accepted
time: 6ms
memory: 4132kb

input:

365 605

output:

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

result:

ok Correct

Test #31:

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

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: 3580kb

input:

748 562

output:

No

result:

ok Correct : No

Test #33:

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

input:

54 252

output:

No

result:

ok Correct : No

Test #34:

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

input:

889 799

output:

No

result:

ok Correct : No

Test #35:

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

input:

504 600

output:

No

result:

ok Correct : No

Test #36:

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

input:

527 701

output:

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

result:

ok Correct

Test #37:

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

input:

195 813

output:

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

result:

ok Correct

Test #38:

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

input:

232 402

output:

No

result:

ok Correct : No

Test #39:

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

input:

326 313

output:

No

result:

ok Correct : No

Test #40:

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

input:

594 628

output:

No

result:

ok Correct : No

Test #41:

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

input:

846 977

output:

No

result:

ok Correct : No

Test #42:

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

input:

795 894

output:

No

result:

ok Correct : No

Test #43:

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

input:

763 660

output:

No

result:

ok Correct : No

Test #44:

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

input:

707 116

output:

No

result:

ok Correct : No

Test #45:

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

input:

555 290

output:

No

result:

ok Correct : No

Test #46:

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

input:

891 597

output:

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

result:

ok Correct

Test #47:

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

input:

580 807

output:

No

result:

ok Correct : No

Test #48:

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

input:

1 1

output:

No

result:

ok Correct : No

Test #49:

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

input:

2 1

output:

No

result:

ok Correct : No

Test #50:

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

input:

1 3

output:

No

result:

ok Correct : No

Test #51:

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

input:

1 4

output:

No

result:

ok Correct : No

Test #52:

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

input:

5 1

output:

No

result:

ok Correct : No

Test #53:

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

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: 3708kb

input:

2 4

output:

No

result:

ok Correct : No

Test #56:

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

input:

2 5

output:

No

result:

ok Correct : No

Test #57:

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

input:

3 4

output:

No

result:

ok Correct : No

Test #58:

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

input:

5 3

output:

No

result:

ok Correct : No

Test #59:

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

input:

5 4

output:

No

result:

ok Correct : No

Test #60:

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

input:

5 5

output:

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

result:

ok Correct

Extra Test:

score: 0
Extra Test Passed