All tasks
Easystrings

Reverse a String

Time limit 2 s · Memory 64 MBAcceptance: 80.0%Solved by: 4

Statement

The input is a single line without spaces. Print it reversed.

Examples

Example 1
Input
hello
Output
olleh

Constraints

  • String length is between 1 and 10^5
Solve this task to unlock the editorial.

AI tutor

Stuck? Get a nudge — the tutor explains the idea, it never hands you the solution.