We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 6: Let's Review
Day 6: Let's Review
Sort by
recency
|
3388 Discussions
|
Please Login in order to post a comment
at first glance, it works, but incorrectly... public class Solution {
}
int main() {
}
In Python:
In Python
def test_case(): s = input() e=[] o=[] for k in range(len(s)): if k%2==0:
e.append(s[k]) else: o.append(s[k]) s= f"{"".join(e)} {"".join(o)}" return s
for i in range(int(input())): print(test_case())