SHENZHEN I/O

SHENZHEN I/O

评价数不足
DANCE ROBOT DANCE
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
3.169 KB
2024 年 8 月 30 日 上午 1:52
1 项改动说明 ( 查看 )

订阅以下载
DANCE ROBOT DANCE

描述
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
2 条留言
pv2b 2024 年 12 月 31 日 上午 9:22 
Was able to squeeze it into 16/5414/34 .

Your best score: Was this one solution with these scores or was this the best metric for each? :-)
zwippie 2024 年 10 月 14 日 上午 11:49 
Ouch, my robot is a real lousy dancer... 27 / 3911 / 60