結果

問題 No.3099 夜の道路は気をつけて運転しなければならない
ユーザー 👑 箱星箱星
提出日時 2021-03-05 17:12:15
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 629 bytes
コンパイル時間 11,726 ms
コンパイル使用メモリ 432,592 KB
実行使用メモリ 51,924 KB
最終ジャッジ日時 2023-10-24 06:31:46
合計ジャッジ時間 16,739 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 276 ms
51,876 KB
testcase_02 AC 278 ms
51,868 KB
testcase_03 WA -
testcase_04 AC 279 ms
51,872 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 / s)
}

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