Nine-degree OJ 1058 reverse-order output

Source: Internet
Author: User

Topic 1058: Reverse-order output

time limit:1 seconds

Memory limit:32 MB

Special question: No

submitted:7583

Resolution:2673

Title Description:

Enter any 4 characters (for example, ABCD) and press the output in reverse order (e.g., DCBA)

Input:

The topic may contain multiple sets of use cases, one row for each group of use cases, and 4 arbitrary characters.

Output:

For each set of inputs, output a line of inverted strings.
A concrete example of the visible sample.

Sample input:
Upincvyjwjpwcxoa
Sample output:
Nipujyvcwpjwaoxc
#include <stdlib.h> #include <stdio.h>int main () {    char a[5];    int i;    while (scanf ("%s", a)!=eof)    {for        (I=strlen (a) -1;i>=0;i--)        {            printf ("%c", A[i]);        }        printf ("\ n");    }    return 0;} /**************************************************************    problem:1058    user:kirchhoff    Language:c    result:accepted    time:70 ms    memory:912 kb********************************************** ******************/



Nine-degree OJ 1058 reverse-order output

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.