Befunge Trace
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
Befunge programs are written in a two-dimensional grid that wraps around horizontally and vertically. Execution starts in the top-left corner, moving right. When the program encounters a 'v', '^', '>', or '<', execution changes direction accordingly. When the program encounters a '@', execution stops. A program may loop indefinitely.
Trace the paths for the simple Befunge programs below, marking traveled spaces with a '.'. The programs below are all 15x15 in size.
Options
exec is denied
no deadline, the server will not save your submission
Sample input:_
v
v <
v < > v
> ^
v <
@
> v
^ <
Sample output:
........v
.
v...<
.
v...< >....v
. . .
. . .
>.......^ .
.
v........<
@ .
. >...v
. .
. .
^.......<
Sample input:_
^
< v
^ >
< ^
Sample output:
.^
....< v.....
. .
. .
. .
. .
....^ >.....
.
.
.
.
.< ^.....
.
Sample input:_
v
v <
> ^
^ >
> ^
< @
Sample output:
.....v
v........<
. . . .
. . >....^
. .
. .
...^ >......
. .
. .
. .
>......^
...< @........
.
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | Histocrat | 127 | 0.1864 | 2016/08/16 02:12:38 | 0B / 48B / 73B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Hem | 145 | 0.0557 | 2016/06/27 19:07:08 | 0B / 51B / 92B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | hallvabo | 143 | 0.1188 | 2015/10/01 05:24:22 | 0B / 75B / 58B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | I., S. | 132 | 0.6175 | 2012/09/23 07:16:04 | 0B / 49B / 79B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | twobit | 78 | 0.0562 | 2012/09/24 21:48:33 | 0B / 19B / 57B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 164 | 0.0437 | 2015/12/30 15:17:03 | 0B / 26B / 126B |
2 | %20 | 196 | 0.0540 | 2015/12/28 15:32:23 | 0B / 27B / 148B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | mitchs (cheat) | 208 | 0.0866 | 2015/10/05 01:58:40 | 130B / 2B / 69B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | fsystem | 69 | 0.0321 | 2012/10/22 13:56:20 | 34B / ?B / ?B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | z80 | fsystem | 69 | 10000 |
2 | K | twobit | 78 | 8846 |
3 | Ruby | Histocrat | 127 | 5433 |
4 | J | I., S. | 132 | 5227 |
5 | Python | hallvabo | 143 | 4825 |
6 | Perl | Hem | 145 | 4758 |
7 | sed | tails | 164 | 4207 |
8 | Brainfuck | mitchs (cheat) | 208 | 3317 |
return to the top page