Skip to content

Instantly share code, notes, and snippets.

@KisaragiEffective
Last active March 7, 2020 13:23
Show Gist options
  • Save KisaragiEffective/1b17bd7a1b13017ef95dfd0669a9ddd7 to your computer and use it in GitHub Desktop.
Save KisaragiEffective/1b17bd7a1b13017ef95dfd0669a9ddd7 to your computer and use it in GitHub Desktop.
import java.math.BigInteger as bigint
private fun solve() {
}
fun main(s: Array<String>) = solve()
fun String.toBigInteger() = bigint(this)
val gets: List<String>
get() = readLine()!!.split(' ')
fun <E> readElems(f: (String) -> E) = gets.map(f)
val ints: List<Int>
get() = readElems { it.toInt() }
val doubles: List<Double>
get() = readElems { it.toDouble() }
val exit: Nothing
get() { System.exit(0); TODO() }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment