DCP-26: Reverse Back to All Problems

Beginner Beginners Problems > Ad-hoc


This is a very simple problem. We give you a string; you reverse it and print it out. The input string will contain ASCII characters only. But it can have space, tabs etc. as well. The end of the string will be always by new line character. Input: ------ Input starts with an integer **T (≤ 30)**, denoting the number of test cases. Each test case will have one line containing the string to reverse. Length of the strings will be less than 1000 characters. Output: ------- For each test case, print the reversed string on a line. Check sample input / output below to understand the format. Sample Input ------------ 3 Reverse eye I am at home. Sample Output ------------- esreveR eye .emoh ta ma I


Problem Setter:

MD. Jalal Uddin

Please login to submit solution to this problem.

Problem Limits

Language Time Limit (seconds)
C 1.00
C++ 1.00
C++14 1.00
C# 2.00
Go 2.00
Java 2.00
JavaScript 2.00
Objective-C 2.00
Perl 2.00
PHP 2.00
Python 2.00
Python3 2.00
Ruby 2.00
VB.Net 2.00

Problem Stats

285/952

Solve/Submission

Ranking

# User Language Timing
01 ash12 Cpp14 0.00s
02 shawon100 Cpp14 0.00s
03 iftekher2283 Cpp14 0.00s
04 zitul_mahmud Cpp14 0.00s
05 MAHRahat Cpp14 0.00s
06 CLown1331 Cpp14 0.00s
07 Core_i14 Cpp14 0.00s
08 Saimum_140128 Cpp14 0.00s
09 Nazmul0092 Cpp14 0.00s
10 pusku Cpp 0.00s
11 Ruman_Hossain Cpp14 0.00s
12 muhaimin Cpp14 0.00s
13 biswajitdas Cpp14 0.00s
14 ronok_cse Cpp14 0.00s
15 reza_ul Cpp14 0.00s
16 Masum_ice Cpp14 0.00s
17 maxhasan Cpp14 0.00s
18 bengal_tiger Cpp14 0.00s
19 gazi93 Cpp14 0.00s
20 lazyfahim Cpp14 0.00s
21 joy25896 Cpp14 0.00s
22 The_Viper Cpp14 0.00s
23 kamolroy9943 Cpp14 0.00s
24 Aizen Cpp14 0.00s
25 non_coder Cpp14 0.00s
26 r13ayan Cpp14 0.00s
27 mir_lutfur_rahman Cpp 0.00s
28 pulak_ict_mbstu Cpp14 0.00s
29 shahad_mahmud Cpp14 0.00s
30 mohibur Cpp14 0.00s
31 afzalul Cpp14 0.00s
32 abufarhad Cpp14 0.00s
33 giash_uddin Cpp14 0.00s
34 sharifulalam Cpp14 0.00s
35 sultan11 C 0.00s
36 mrinmoi Cpp14 0.00s
37 junayedmahmud Cpp14 0.00s
38 m_rony Cpp14 0.00s
39 Indro_BU Cpp14 0.00s
40 Akshay Cpp 0.00s
41 themasters_sun Cpp14 0.00s
42 feodorv C 0.00s
43 anik_JU Cpp14 0.00s
44 mahbubcse095 Cpp 0.00s
45 Freaky_Weirdo Cpp14 0.00s
46 Mr_KAJOL Cpp14 0.00s
47 ATIK161 Cpp14 0.00s
48 SyntaxError10 Cpp14 0.00s
49 gulzar Cpp14 0.00s
50 JubayerSohel Cpp14 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support