add 2908.kt,10821.kt & complete all in zeta_kotlin

This commit is contained in:
2020-08-01 03:31:39 +09:00
parent 83022655fd
commit 5678668c28
3 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
fun main() {
println(readLine()?.split(",")?.size)
}

View File

@@ -0,0 +1,7 @@
fun main(){
val (a, b) = readLine()!!.split(" ")
val a_ = a.reversed().toInt()
val b_ = b.reversed().toInt()
if (a_ > b_) {println(a_)} else {println(b_)}
}