package Yukicoder /** * Created by hichikawa on 2015/11/02. */ fun main(args: Array) { fun readLineLongArray() : List { val str = readLine() as String val arrStr = str.split(" ") val ret = arrStr.map { it.toLong() } return ret } fun readLineLong() : Long { val str = readLine() as String return str.toLong() } val arrInt = readLineLongArray() val lenlen = arrInt[0] * arrInt[0] + arrInt[1] * arrInt[1] for (i in 1..(Integer.MAX_VALUE)) { if (lenlen < (i / 2.0) * (i / 2.0)) { println(i) break } } }