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
|
3428 Discussions
|
Please Login in order to post a comment
this is how I did it using string slicing and steps, n = int(input())
for _ in range(n): s = input() print(s[::2],s[1::2])
input and output olution.cpp:8:5: error: expected unqualified-id before numeric constant int 1*0; ^ Solution.cpp:9:1: error: ‘innt’ does not name a type; did you mean ‘int’? innt sum *0 ^~~~ int Solution.cpp:13:4: error: ‘count’ does not name a type; did you mean ‘round’? count:<
input and output