結果

問題 No.3099 夜の道路は気をつけて運転しなければならない
ユーザー 👑 箱
提出日時 2021-03-05 17:02:30
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 286 ms / 2,000 ms
コード長 651 bytes
コンパイル時間 14,814 ms
コンパイル使用メモリ 430,200 KB
実行使用メモリ 51,932 KB
最終ジャッジ日時 2023-10-24 06:31:26
合計ジャッジ時間 15,765 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 275 ms
51,924 KB
testcase_01 AC 282 ms
51,928 KB
testcase_02 AC 281 ms
51,920 KB
testcase_03 AC 280 ms
51,916 KB
testcase_04 AC 280 ms
51,912 KB
testcase_05 AC 286 ms
51,920 KB
testcase_06 AC 283 ms
51,928 KB
testcase_07 AC 278 ms
51,920 KB
testcase_08 AC 277 ms
51,920 KB
testcase_09 AC 278 ms
51,916 KB
testcase_10 AC 275 ms
51,932 KB
testcase_11 AC 278 ms
51,908 KB
testcase_12 AC 283 ms
51,916 KB
testcase_13 AC 281 ms
51,916 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:5:9: warning: variable 't' is never used
    val t = nextInt()
        ^

ソースコード

diff #

import java.io.PrintWriter
import java.util.*

fun PrintWriter.solve() {
    val t = nextInt()
    val s = nextInt()
    val d = nextInt()
    println(d.toDouble() / s.toDouble())
}

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

// region Scanner
private var st = StringTokenizer("")
private val br = System.`in`.bufferedReader()

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()
// endregion
0