A newly commissioned deep-space relay station needs a minimal responder routine before it can be trusted with real traffic. Ground control will send it an arbitrary incoming signal purely to confirm the relay is alive; the relay must ignore the content of that signal entirely and always transmit back the same fixed handshake acknowledgment so downstream instruments know the link is functioning.
The input consists of the incoming signal S as a single block of text: a string of length between 0 and 100 (inclusive), made up of printable ASCII characters (character codes 32-126). S may be empty, in which case the input stream may contain nothing at all, or only a blank line. You must read and discard whatever is given without inspecting its contents.
Print exactly one line containing the fixed acknowledgment string:
ACK-READY-001
S contains only printable ASCII characters when non-empty (it may contain spaces and punctuation).S in any way.Example 1
Input
PING
Expected
ACK-READY-001
Explanation
The relay receives the signal "PING" but ignores its content entirely and always answers with the fixed acknowledgment string "ACK-READY-001".
Example 2
Input
(empty)Expected
ACK-READY-001
Explanation
Even when no signal at all is received (an empty input), the relay still must respond with the same fixed acknowledgment string "ACK-READY-001", since the output never depends on the input.
Ready to solve this?
Sign in to open the editor, run your code against the sample tests, and submit against the full test suite.
Sign in to solve →