SHENZHEN I/O

SHENZHEN I/O

Nicht genug Bewertungen
DANCE ROBOT DANCE
   
Preis verleihen
Favorisieren
Favorisiert
Entfernen
Dateigröße
Veröffentlicht
3.169 KB
30. Aug. um 1:52
1 Änderungshinweis (anzeigen)

Abonnieren zum Herunterladen
DANCE ROBOT DANCE

Beschreibung
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