Advertisement
Nevtr4l

Base Kotlin (Casos múltiples)

Aug 27th, 2024
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.22 KB | None | 0 0
  1. fun main() {
  2.     // leer número de casos
  3.     val t = readLine()!!.toInt()
  4.     repeat(t) {
  5.         solve()
  6.     }
  7. }
  8.  
  9. fun solve() {
  10.     // aquí va tu código
  11.     val leerLinea = readLine()!!
  12.     println(leerLinea)
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement