编程介的小学生
2017-10-31 03:58Encoding The Diary
Problem Description
You know many girls likes writing diaries,of course they have some secrets don’t want others to know.So this time, they asked you to encoding the diary.
The rule is :
Give you a string. Such as “ARE YOU AC?”
Firstly , delete all spaces in this string.
You will get “AREYOUAC?”
String AREYOUAC?
Index 123456789
Secondly,print the characters who’s index are the multiple of 3.
Thirdly, print the characters who’s index are the multiple of 2.If it has been printed,just ignore it .
At last,print the characters that have not been printed.
Input
Each case will contain a string in one line.You may suppose the length of the string will not exceed 200.
Output
For each case, output the encoded string in one line.
Sample Input
ARE YOU AC?
Sample Output
EU?RYCAOA
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- GAE Java 上传时的问题
- 企业应用
- 0个回答
- Encoding The Diary
- as
- it
- string
- 编码
- each
- 1个回答