Text Reverse Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description Ignatius likes to write words in reverse way. Given…
Problem Description Ignatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words and then output them. Input The input contains several test cases. The first line of the inpu…
class Program { static void Main(string[] args) { // 输出 ypoc si yek eht string str = "the key is copy"; char[] arr = str.ToCharArray(); Array.Reverse(arr); var result = new string(arr); //输出 copy is key the string[] ss = str.Split(new string[] {…