Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.BufferedReader
- import java.io.IOException
- import java.io.InputStreamReader
- import java.io.PrintWriter
- import java.util.StringTokenizer
- internal fun next(): String {
- while (st == null || !st!!.hasMoreTokens()) {
- st = StringTokenizer(br.readLine())
- }
- return st!!.nextToken()
- }
- @Throws(IOException::class)
- internal fun nextInt(): Int {
- return Integer.parseInt(next())
- }
- @Throws(IOException::class)
- internal fun nextLong(): Long {
- return java.lang.Long.parseLong(next())
- }
- @Throws(IOException::class)
- private fun run() {
- solve()
- out.close()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement