ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1549. Another Japanese Puzzle

Beqa Lomitashvili [Freeuni] Is the answer of second sample impossible? [1] // Problem 1549. Another Japanese Puzzle 24 Oct 2013 23:14
49 3
I mean, FRRR or FLLL or FLFLLF could return us to the base,
it also doesn't violate any of two rules:
1. The total number of letters F must not exceed S and 2. the total number of letters L and R must not exceed T

are there any more restrictions???
👨🏻‍💻 Spatarel Dan Constantin Re: Is the answer of second sample impossible? // Problem 1549. Another Japanese Puzzle 6 Sep 2019 00:05
The problem asks: "What is the longest closed path that you can assemble?"

Your examples are not closed loops. The first and last squares, although they are neighbours, they don't match their path endings.