We have a list of scores from your Kotlin tests. Please group them by pass (score greater than or equal to 5) and fail (score less than 5) and the size of each group according to your results.
Grouping collections
The result of your scores
Report a typo
Sample Input 1:
10.0 9.5 8.0 7.5 6.0 1.5Sample Output 1:
{pass=5, fail=1}Write a program in Kotlin
const val MINIMUM_MARK = 5
fun main() {
val list = readln().split(" ").map { it.toDouble() }
// 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.