1135 -- 逆转字符串

来源:互联网 发布:推荐初学c语言的书籍 编辑:程序博客网 时间:2024/06/05 20:20

逆转字符串

Time Limit:1000MS  Memory Limit:65536K
Total Submit:312 Accepted:222

Description

输入一个字符串(不含空格,长度不超过1000)你的任务就是把它反序输出就算你赢了。

Input

输入一个字符串(不含空格)

Output

逆转后的字符串

Sample Input

abcdefg

Sample Output

gfedcba

Source

    using System;    using System.Collections.Generic;    using System.Linq;    using System.Text;    namespace AK1135 {        class Program {            static void Main(string[] args) {                string s = Console.ReadLine();                for (int i = s.Length - 1; i >= 0; i--)                    Console.Write(s[i]);                Console.WriteLine();            }        }    }


0 0