|
|||
Hex Code
In the movie The Martian (2015), astronaut Mark Watney, one of the crew members of Mission Ares III, was left behind on Mars due to an unexpected incident during the surface exploration on the planet Mars. The communication with Earth was quasi-inexistent. Fortunately, Mark Watney managed to establish a very simple way to communicate with NASA at the mission control base on Earth through hexadecimal codes.
Mark could receive one simple code at a time, which he could detect as a hexadecimal digit or
hex code including
If Mark receives a code sequence “ Input Specification
The input contains several lines of hex codes only ( Output SpecificationFor each line of hex codes, print out the corresponding text message. Sample Input
Output for Sample Input
|
|||
University of Debrecen; Faculty of Informatics; v. 03/01/2019 |