#GOC12590. 旋转字(words)
旋转字(words)
题目描述
从键盘中读入一个字串L(字串长度<=36个字符)和一个整数N(1<=N<=36),从该字串最末位开始逐位移到字串的开头,求移N位后的新字串。
Input
从输入文件words.in读入数据。2行,第一行字串L,第二行为字串长度N。
Output
旋转后的字串
Sample Input
【输入样例1】 【输入样例2】
computer program
3 1
【输出样例1】 【输出样例2】
tercompu mprogra