Snake fixed

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

Determine the final snake direction (U/B/L/R). F moves forward and doesn't changes direction.

Note: I am NOT the original problem author
The previous problem's outputs were inconsistent so I fixed it; sorry if it was intentional

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

RLLLFRFFFRLR
FLRRRRRLLLRRFRRRLLRLRRLFLF
LLFLFRRFLFRRLFFLRRRLFLLF
FRRRFFFFLFFLFLFLLLFFLFLF
FLLRFRFFLFLLLF
R
FFFLFFFFLL
LFFLFRRFLFLLLFRRRFLRRRF
FF
FFLRRFRLRRLFLLR
LLFRLRLFR
FRRLRRFLFLFLFF
FLRLLFLFFLLLLRLRL
RF
RRRFRLFLFRLFRLLLLRRRRFR
LRFFFLFFLLRFLFFRLLFLLRR
RLLRLLRF
F
LFRFLFLFFLRFLRRRFLRFRFFFRRRRLRF
FFFLLLFLRR
LRRFLFLFLFFLFRLRFLFFLRF
LRFLLRRL
FLRLLFFLRFLLRFLFRRLLLLRFFLRFRR
RLLRFRLRFLLFRLLF
FLRFFLLRFFLRFFR

Sample output:

R
R
L
U
R
B
B
B
R
B
U
R
B
B
R
R
U
R
B
L
B
U
B
L
R

Sample input:_

F
LFR
RFF
LRL
RLRF
FFRLL
LRRF

Sample output:

R
R
B
U
B
U
B

Ranking

JavaScript _

RankUserSizeTimeDateStatistics
1teebee750.04242026/10/29 07:55:280B / 48B / 27B
2JOrE20760.03902026/10/17 21:07:440B / ?B / ?B
3JOrE20(thanks you so much i was so angry outputs was incorrect)760.04092026/10/17 21:08:010B / ?B / ?B
4JOrE20 (was not intentional, is also works if i thought first test suffies)760.03992026/10/17 21:08:240B / ?B / ?B
5:)760.03952026/10/17 21:18:120B / 42B / 31B
6JOrE20 (not inspired by teebee)750.04442026/10/31 20:59:450B / ?B / ?B
7teebee (JOrE20)750.05762026/11/03 10:46:520B / 41B / 31B

iogii _

RankUserSizeTimeDateStatistics
1tubular130.04362026/11/03 09:20:510B / 9B / 4B
2JOrE20180.04972026/11/01 19:31:260B / ?B / ?B

sed _

RankUserSizeTimeDateStatistics
1#c0ffee490.02872026/10/19 23:12:240B / 33B / 9B

Language Ranking_

RankLangUserSizeScore
1iogiitubular1310000
2sed#c0ffee492653
3JavaScriptteebee751733

return to the top page