-
Title Description:
-
Enter a string with a length of less than or equal to 200, and then invert the array output.
-
Input:
-
There are several groups of test data, each of which enters a string.
-
Output:
-
For each set of inputs, output the inverted result.
-
Sample input:
-
Hdssg
-
Sample output:
-
Gssdh
-
Source:
- 2011 The computer Research of Harbin Institute of Technology The real problem
-
Answering:
Problem solving problems? to discuss the subject of discussion please visit: http://t.jobdu.com/thread-7779-1-1.html
#include <stdlib.h> #include <stdio.h> #include <string.h>int main () {char a[201]; int I;while (scanf ("%s", a)!=eof) {for (I=strlen (a) -1;i>=0;i--) { printf ("%c", A[i]);} printf ("\ n");} return 0;} /**************************************************************problem:1055user:vhreallanguage:cresult: acceptedtime:0 msmemory:912 kb****************************************************************/
Nine degrees oj-topic 1055: Array Inverse