結果
問題 | No.3099 夜の道路は気をつけて運転しなければならない |
ユーザー | 👑 箱星 |
提出日時 | 2021-03-05 17:10:17 |
言語 | Kotlin (1.9.23) |
結果 |
AC
|
実行時間 | 345 ms / 2,000 ms |
コード長 | 680 bytes |
コンパイル時間 | 15,269 ms |
コンパイル使用メモリ | 433,100 KB |
実行使用メモリ | 54,764 KB |
最終ジャッジ日時 | 2023-10-24 06:31:00 |
合計ジャッジ時間 | 19,893 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 345 ms
54,752 KB |
testcase_01 | AC | 335 ms
54,748 KB |
testcase_02 | AC | 340 ms
54,760 KB |
testcase_03 | AC | 340 ms
54,756 KB |
testcase_04 | AC | 337 ms
54,764 KB |
testcase_05 | AC | 337 ms
54,748 KB |
testcase_06 | AC | 336 ms
54,756 KB |
testcase_07 | AC | 332 ms
54,760 KB |
testcase_08 | AC | 335 ms
54,756 KB |
testcase_09 | AC | 334 ms
54,756 KB |
testcase_10 | AC | 336 ms
54,756 KB |
testcase_11 | AC | 337 ms
54,756 KB |
testcase_12 | AC | 336 ms
54,760 KB |
testcase_13 | AC | 332 ms
54,756 KB |
コンパイルメッセージ
Main.kt:5:9: warning: variable 't' is never used val t = nextInt() ^
ソースコード
import java.io.PrintWriter import java.util.* fun PrintWriter.solve() { val t = nextInt() val s = nextInt() val d = nextInt() val h = d.toDouble() / s.toDouble() println("%.9f".format(h)) } 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