Problem1207--移动字母

1207: 移动字母

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 1
[Submit] [Status] [Web Board] [Creator:]

Description

本题要求编写函数,将输入字符串的前3个字符移到最后。 函数接口定义: void Shift( char s[] ); 其中char s[]是用户传入的字符串,题目保证其长度不小于3;函数Shift须将按照要求变换后的字符串仍然存在s[]里。 裁判测试程序样例: #include #include #define MAXS 10 void Shift( char s[] ); void GetString( char s[] );

Input

其中char s[]是用户传入的字符串,题目保证其长度不小于3

Output

其中char s[]是用户传入的字符串,题目保证其长度不小于3

Sample Input Copy

abcdef

Sample Output Copy

defabc

Source/Category