← ~/задачи
P2006

Reverse the Number

Easy
// Условие
Given a non-negative integer n, output the number formed by reversing its decimal digits. Leading zeros in the result are dropped.
// Ввод
A single integer n (0 <= n <= 10^18).
// Вывод
The reversed number.
// Подсказка
Reverse the string and convert it back to an integer to drop leading zeros.
// Примеры
Пример ввода
1200
Пример вывода
21
// О задаче
СложностьEasy
Процент принятых50%
Ограничение времени1000 ms
Ограничение памяти65536 KB
Принято5