Ethan Hunt is ready for another "Mission: Impossible". To disable a nuclear warhead, you must type the correct combination. He only knows that the code is obtained in the following way: given a list of secret words, he must associate the first letter with the word length. Print the map that represents the combination that Ethan must use to disables the device.
Collection transformations
The secret code?
Report a typo
Sample Input 1:
expetum axio alithigumSample Output 1:
{E=7, A=9}Write a program in Kotlin
/* Do not change code below */
fun main() {
val list = readln().split(" ")
// write your code here
val res =
println(res)
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.