SHENZHEN I/O

SHENZHEN I/O

Sem avaliações suficientes
DANCE ROBOT DANCE
   
Premiar
Adic. a Favoritos
Nos Favoritos
Desfavoritar
Tamanho:
Publicado em:
3.169 KB
30 de ago. às 1:52
1 nota de alteração ( ver )

Subscreve para transferir
DANCE ROBOT DANCE

Descrição
MAKE YOUR ROBOT DANCE!

*initial position* defines the initial coordinates of your robot. For example, when *initial position* = 35, your robot is initially located at (x = 3, y = 5).
*up*, *down*, *left* and *right* are movement commands that act on your robot.
*walls* specifies all of the blocked points. At most 8 walls.
At any time, your robot can only move within the area of (1, 1) ~ (8, 8) and cannot reach any blocked points.
Output your robot's *real-time position* in each time unit. In addition, activate the *blocked* signal if your robot is blocked.
*initial position* may never be blocked.

====================

My best score is 16 / 2015 / 32