The secret code to save the city?

Report a typo

Ethan Hunt is ready for another "Mission: Impossible". To disable a chemical weapon, he must type the correct combination. He only knows that the code is obtained in the following way: given a list of words, you must take groups of two and sum their lengths. You should discard the groups of a smaller size. Please print the list with the results to help Ethan disable the weapon.

Sample Input 1:

expetum axio lithigum magnum anima

Sample Output 1:

[11, 14]
Write a program in Kotlin
fun main() {
val list = readln().split(" ")
// write your code here
val res =

println(res)
}
___

Create a free account to access the full topic