Arrow Travel

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Starting at [0,0], for each input, move the coordinate to direction of arrow, and print new coordinate as "x y" space-separated. Note that you shouldn't move with ↔↕⇔⇕⥀⥁ arrows.

Options

rejudge feature is enabled

now post-mortem time, all source codes will be revealed

Sample input:_

⇨
⇔
↗
⥀
↲
↰
⇙
↱
←
⇨
⇦
↘
↗
⇗
⇖
⇐
↔
⇓
⥁
⇩
⥀
↲
↓
→
⇒
↕
⇑
↲
⇦
⥁
⇧
⇨
↗
⇑
⇑
⇘
↱
⥀
⇒
↑
⇘
⇕
⇓
↖
⇕
↳
↙
↖
←
↓
⥁
↘
⇒
⇙
↖
→
↱
⇗
↘
⇔
⇔
↕

Sample output:

1 0
1 0
2 1
2 1
1 0
0 1
-1 0
0 1
-1 1
0 1
-1 1
0 0
1 1
2 2
1 3
0 3
0 3
0 2
0 2
0 1
0 1
-1 0
-1 -1
0 -1
1 -1
1 -1
1 0
0 -1
-1 -1
-1 -1
-1 0
0 0
1 1
1 2
1 3
2 2
3 3
3 3
4 3
4 4
5 3
5 3
5 2
4 3
4 3
5 2
4 1
3 2
2 2
2 1
2 1
3 0
4 0
3 -1
2 0
3 0
4 1
5 2
6 1
6 1
6 1
6 1

Sample input:_

⇘
↖
⥁
⇗
↕
↑
↲
⇘
⥀
↖
↗
↰
↖
↔
↱
⇘
↰
↓
⇙
⇓
↑
⇦
↔
⇒
⇓
⇔
⇐
⇧
↳
↗
↓
↳
↙
↱
↘
⇩
→
⇨
⇑
↓
⇦
⇨
⥁
↔
←
⇓
↗
⇖
↙
↕
⇩
⇔
↲
⇔
↱
→
↘
⇑
↲
⇩
↳
⇑
⇖
⇨
⇕
⥁

Sample output:

1 -1
0 0
0 0
1 1
1 1
1 2
0 1
1 0
1 0
0 1
1 2
0 3
-1 4
-1 4
0 5
1 4
0 5
0 4
-1 3
-1 2
-1 3
-2 3
-2 3
-1 3
-1 2
-1 2
-2 2
-2 3
-1 2
0 3
0 2
1 1
0 0
1 1
2 0
2 -1
3 -1
4 -1
4 0
4 -1
3 -1
4 -1
4 -1
4 -1
3 -1
3 -2
4 -1
3 0
2 -1
2 -1
2 -2
2 -2
1 -3
1 -3
2 -2
3 -2
4 -3
4 -2
3 -3
3 -4
4 -5
4 -4
3 -3
4 -3
4 -3
4 -3

Sample input:_

↕
↘
←
⇨
⇑
↔
⇓
⇘
⥀
↳
↱
⇐
⥁
↑
⥁
↔
⇑
⇒
⇐
⇕
↲
→
⇨
⇔
↓
↖
⇙
→
⇔
↑
↲
↖
⇧
⇩
↲
↗
⇕
⇦
↰
↕
⇖
⇨
↕
⥀
⇧
⇦
⇗
⥁
⇦
⇑
⇒
↙
⇓
⇧
↑
⇘
↓
⇓
⇘
⇩
⥀
⇗
↔
↕
⇔
⇕
⥀
⥁

Sample output:


0 0
1 -1
0 -1
1 -1
1 0
1 0
1 -1
2 -2
2 -2
3 -3
4 -2
3 -2
3 -2
3 -1
3 -1
3 -1
3 0
4 0
3 0
3 0
2 -1
3 -1
4 -1
4 -1
4 -2
3 -1
2 -2
3 -2
3 -2
3 -1
2 -2
1 -1
1 0
1 -1
0 -2
1 -1
1 -1
0 -1
-1 0
-1 0
-2 1
-1 1
-1 1
-1 1
-1 2
-2 2
-1 3
-1 3
-2 3
-2 4
-1 4
-2 3
-2 2
-2 3
-2 4
-1 3
-1 2
-1 1
0 0
0 -1
0 -1
1 0
1 0
1 0
1 0
1 0
1 0
1 0

Ranking

gs2 _

RankUserSizeTimeDateStatistics
1whio440.23232026/06/17 03:14:1423B / 10B / 10B

Nibbles _

RankUserSizeTimeDateStatistics
1whio280.06522026/06/19 05:10:1020B / 6B / 2B

Language Ranking_

RankLangUserSizeScore
1Nibbleswhio2810000
2gs2whio446363

return to the top page