結果

問題 No.1101 鼻水
ユーザー 👑 箱星箱星
提出日時 2020-07-03 21:34:55
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 967 bytes
コンパイル時間 12,650 ms
コンパイル使用メモリ 438,360 KB
実行使用メモリ 51,932 KB
最終ジャッジ日時 2023-10-16 23:25:17
合計ジャッジ時間 20,323 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 272 ms
51,892 KB
testcase_01 AC 266 ms
51,896 KB
testcase_02 AC 262 ms
51,908 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 263 ms
51,896 KB
testcase_07 WA -
testcase_08 AC 286 ms
51,904 KB
testcase_09 WA -
testcase_10 AC 265 ms
51,904 KB
testcase_11 WA -
testcase_12 AC 271 ms
51,912 KB
testcase_13 WA -
testcase_14 AC 267 ms
51,900 KB
testcase_15 WA -
testcase_16 AC 269 ms
51,912 KB
testcase_17 WA -
testcase_18 AC 273 ms
51,904 KB
testcase_19 WA -
testcase_20 AC 270 ms
51,896 KB
testcase_21 WA -
testcase_22 AC 271 ms
51,908 KB
testcase_23 WA -
testcase_24 AC 272 ms
51,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader
import java.io.InputStream
import java.io.InputStreamReader
import java.io.PrintWriter
import java.util.*

fun PrintWriter.solve(sc: FastScanner) {
    val v = sc.nextLong().toBigInteger()
    val t = sc.nextLong().toBigInteger()
    val p = sc.nextLong().toBigInteger()
    val x = v + p * v
    println(1.toBigInteger() + (t * x) / (t - 1.toBigInteger()))
}

fun main() {
    val writer = PrintWriter(System.out, false)
    writer.solve(FastScanner(System.`in`))
    writer.flush()
}

class FastScanner(s: InputStream) {
    private var st = StringTokenizer("")
    private val br = BufferedReader(InputStreamReader(s))

    fun next(): String {
        while (!st.hasMoreTokens()) st = StringTokenizer(br.readLine())

        return st.nextToken()
    }

    fun nextInt() = next().toInt()
    fun nextLong() = next().toLong()
    fun nextLine() = br.readLine()
    fun nextDouble() = next().toDouble()
    fun ready() = br.ready()
}
0