游客 Signup | Login
中文 | En

3140 - 字符的输入输出练习

请按如下格式输入输出数据

Input

a b

c

Output

cba

Examples

Input

a b
c

Output

cba

Solution C

#include<stdio.h>
main()
{
	char x,y,z;
	 scanf("%c %c\n%c",&x,&y,&z);
	 printf("%c%c%c\n",z,y,x);
 
	 
}

Solution C++

#include"stdio.h"
int main()
{
	char a,b,n,q,t;
	scanf("%c%c%c%c",&a,&b,&n,&t);
	scanf("%c",&q);
	printf("%c%c%c",q,n,a);
} 
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题