#257. 按模式抽取字符串字符

    ID: 257 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatWarmup-2gesp3字符串循环结构

按模式抽取字符串字符

Character Extraction

Background

Congcong is learning string manipulation and encounters an interesting problem that requires extracting characters from a given string following a specific pattern.

Problem Description

Given a string, return a string made of the characters at indices 0,1,4,5,8,9,0, 1, 4, 5, 8, 9, \dots. For example, for the input "kittens\