Ethan Hunt is ready for another "Mission: Impossible". To prevent the escape of a virus from an illegal laboratory, he must type the correct code. He only knows that the code is obtained in the following way: given a list of words, he must take the first word that starts with "m" if reversed and type this reversed word. Please write the code to help Ethan disable the biological weapon.
Retrieve single element
Secret code to save the city
Report a typo
Sample Input 1:
exilium gold silver bronze platinumSample Output 1:
muilixeWrite 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.