1159:0-point-of-study algorithm 66--irony

Source: Internet
Author: User

1159:0 starting point algorithm 66--sarcastic time limit:1 Sec Memory limit:64 MB 64bit IO Format:%lld
submitted:1470 accepted:626
[Submit] [Status] [Web Board] Description

Outputs the input characters in reverse order

Input

Multiple sets of test data
One row per group (no more than 200 characters per set of data)

Output

Output each character in the order in which it was entered

Sample Input
I am a boy.

Sample Output
. yob a MA I

Source

0 Starting point Learning algorithm

1#include <stdio.h>2#include <string.h>3 intMain () {4     Charch[ $];5      while(Gets (ch)! =NULL) {6         intN;7n=strlen (CH);8          for(inti=n-1; i>=0; i--){9printf"%c", Ch[i]);Ten         } Oneprintf"\ n"); A     } -     return 0; -}

The processing of strings is very important!!

1159:0-point-of-study algorithm 66--irony

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.