Location:
Search - Mars W
Search list
Description: C源代码程序,可将火星坐标转换为WGS84坐标(改编版)-C source code program, converted Mars coordinates to WGS84 coordinates (adapted version)
Platform: |
Size: 982016 |
Author: xiao jing |
Hits:
Description: 题目:火星漫游者
问题描述:
若干个火星漫游者(机器人)被NASA(美国国家航空和宇宙航行局)送到火星,对火星的一个高原进行科学探测,这个高原是一个矩形,火星漫游者将漫游整个高原,并通过照相机对高原拍照,将照片发回地球,以了解这个高原的全貌。
任意一个漫游者的位置将由x,y坐标和一个代表方向的字母确定(N-北,S-南,E-东,W-西),为了简化漫游,将高原划分为网格。例如(0,0,N)表示火星漫游者位于高原的左下角,方向朝北。
NASA通过发送命令字符串控制火星漫游者,命令字符串是字符’L’,’R’,’M’的组合,’L’,’R’表示使漫游者向左或右旋转90°,但坐标不变;’M’表示使漫游者沿当前方向移动一个网格点,并保持方向不变。
假设高原的正北方向是从点(x,y)到点(x,y+1)的方向-Title: Mars rover
Problem description:
Several Mars rover (robot) is NASA (National Aeronautics and Space Administration) sent to the Mars, the Mars scientific exploration of a plateau, this plateau is a rectangle, Mars rover will roam the entire plateau, and through the camera pictures on the plateau, the photos back to Earth, to understand the complete picture of the plateau.
Any of the rover position will be x, y coordinates and a representative of the letters to determine the direction (N-North, S-South, E-East, W-West), in order to simplify the roaming, the plateau is divided into grids. For example (0,0, N) that Mars rover in the lower left corner of the plateau, the direction of north.
NASA Mars by sending a command string to control the rover, the command string is the character L , R , M combination, L , R said the Wanderer left or right to rotate 90 °, but coordinates unchanged M , said the current move to rover along a grid point, and maintain the same direction
Platform: |
Size: 7168 |
Author: bob |
Hits: