The secret is inside the spell?

Report a typo

Harry Potter is again trying to solve a new challenge to open the Chamber of Secrets. He must discover the secret spell in the words of a scroll. To do this, he must obtain the list of accumulate values of the length of each spell.

What is the code to open the door?

Sample Input 1:

expetum patronus Axio lithigum madriketom

Sample Output 1:

[0, 7, 15, 19, 27, 37]
Write a program in Kotlin
/* Do not change code below */
fun main() {
val list = readln().split(" ")
// write your code here
val res =


println(res)
}
___

Create a free account to access the full topic