nkiesel
05/23/2019, 8:25 AMfun main() {
readLine()!!.toInt()
val doggies = readLine()!!.toCharArray().groupBy { it }.mapValues { it.value.size }
println(if (doggies.any { it.value >= 2 }) "Yes" else "No")
}
elizarov
05/23/2019, 8:48 AMnkiesel
05/23/2019, 5:33 PM