对于给定的由小写字母和空格混合构成的字符串 ,将其翻转后输出。 保证给定的字符串 的首尾不为空格。
输入描述:
在一行上输入一个长度为 、由小写字母和空格混合构成的字符串 。
输出描述:
输出一个字符串,表示将输入字符串 翻转后的结果。
示例1
输入
hello nowcoder
输出
redocwon olleh
示例2
输入
a
输出
a
加载中...
import java.io.IOException; public class Main { public static void main(String[] args) throws IOException { } }
#include
#include
using namespace std; int main(){ }
hello nowcoder
redocwon olleh
a
a