Last active
March 7, 2020 13:23
-
-
Save KisaragiEffective/1b17bd7a1b13017ef95dfd0669a9ddd7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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