Guest User

Untitled

a guest
Feb 27th, 2020
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.io.BufferedReader
  2. import java.io.IOException
  3. import java.io.InputStreamReader
  4. import java.io.PrintWriter
  5. import java.util.StringTokenizer
  6.  
  7.     internal fun next(): String {
  8.         while (st == null || !st!!.hasMoreTokens()) {
  9.             st = StringTokenizer(br.readLine())
  10.         }
  11.         return st!!.nextToken()
  12.     }
  13.  
  14.     @Throws(IOException::class)
  15.     internal fun nextInt(): Int {
  16.         return Integer.parseInt(next())
  17.     }
  18.  
  19.     @Throws(IOException::class)
  20.     internal fun nextLong(): Long {
  21.         return java.lang.Long.parseLong(next())
  22.     }
  23.  
  24.     @Throws(IOException::class)
  25.     private fun run() {
  26.         solve()
  27.         out.close()
  28.     }
RAW Paste Data