Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
|---|---|---|---|---|---|---|
| 72 | Unknown Language Round 2 | FINISHED | False | 10800 | 475768223 | March 20, 2011, 4:10 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 284 ) | H | Reverse It! | PROGRAMMING | *special implementation | 1600 |
The 14th of March was the international day of mathematics, because of number π = 3.1415926.. . In the occasion of this day Goofy Nephews Unity Organization (GNU) wants to publish the fastest program in math at 1:59:26 AM. Now the time is 1:11:11 AM and the project team haven't checked their program yet. Because of shortage of time they want to check their program with some queries. So they hired Hormizd (one of the greatest programmers in world) to write a tester for GNU's new program. Because Hormizd has much more important things to do, he wants you to write a small part of tester and it is reversing the numbers. Help him before 1:59:26. We can reverse numbers easily. For example by reversing 1234 we get 4321 . Note, that if the integer is negative then its reverse would be also negative. For example reverse of - 123 is - 321 . Also, you have to delete all the leading zeroes before and after the reverse. Given an integer you have to help Hormizd reverse it. The first line contains a single integer n . It is less than 10 1000 by it's absolute value. This integer may have leading zeros. If it had leading zeros you should first omit them and print the reverse of remaining digits. It's guaranteed that input contains less than 10001 characters. Output a single integer, the reverse of the given number. You have to omit leading zeros in the output. |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 352768 | loro | H | March 23, 2011, 7:55 p.m. | OK | Io | TESTS | 100 | 170 | 4608000 | 1600 | |
| 345668 | Skiminok | H | March 20, 2011, 5:28 p.m. | OK | Io | TESTS | 100 | 170 | 4608000 | 1600 | |
| 345493 | Gifts | H | March 20, 2011, 5:11 p.m. | OK | Io | TESTS | 100 | 170 | 4608000 | 1600 | |
| 69880262 | vjudge1 | H | Jan. 31, 2020, 6:04 a.m. | OK | Io | TESTS | 100 | 186 | 0 | 1600 | |
| 45396338 | yongwhan | H | Nov. 7, 2018, 4:53 a.m. | OK | Io | TESTS | 100 | 186 | 0 | 1600 | |
| 13832448 | 130705009 | H | Oct. 25, 2015, 2:14 a.m. | OK | Io | TESTS | 100 | 186 | 204800 | 1600 | |
| 63683605 | Anish1712 | H | Oct. 28, 2019, 9:09 p.m. | OK | Io | TESTS | 100 | 186 | 307200 | 1600 | |
| 61949480 | steven1029 | H | Oct. 6, 2019, 2:32 a.m. | OK | Io | TESTS | 100 | 186 | 307200 | 1600 | |
| 53582240 | Quan2202 | H | April 30, 2019, 4:16 p.m. | OK | Io | TESTS | 100 | 186 | 307200 | 1600 | |
| 51966033 | ashok123 | H | March 29, 2019, 10 a.m. | OK | Io | TESTS | 100 | 186 | 307200 | 1600 |
Back to search problems