Skip to content

Commit 3be3888

Browse files
committed
add direction
1 parent a742005 commit 3be3888

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

marathon/template.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ Rand rnd(35023503980LL);
7777
Timer timer;
7878
using Answer = vector<int>; // TODO
7979

80+
enum Dir { U, R, D, L };
81+
const int dr[4] = {-1, 0, 1, 0};
82+
const int dc[4] = {0, 1, 0, -1};
83+
8084
void input() {
8185

8286
}

0 commit comments

Comments
 (0)