結果

問題 No.159 刺さらないUSB
ユーザー 826814741_6826814741_6
提出日時 2019-01-05 15:12:30
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 300 ms / 1,000 ms
コード長 185 bytes
コンパイル時間 14,401 ms
コンパイル使用メモリ 416,356 KB
実行使用メモリ 53,120 KB
最終ジャッジ日時 2023-09-14 17:06:53
合計ジャッジ時間 20,700 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 291 ms
53,036 KB
testcase_01 AC 288 ms
52,832 KB
testcase_02 AC 289 ms
52,768 KB
testcase_03 AC 299 ms
52,820 KB
testcase_04 AC 294 ms
53,020 KB
testcase_05 AC 298 ms
52,892 KB
testcase_06 AC 297 ms
52,888 KB
testcase_07 AC 300 ms
52,848 KB
testcase_08 AC 292 ms
52,804 KB
testcase_09 AC 290 ms
52,808 KB
testcase_10 AC 289 ms
52,812 KB
testcase_11 AC 289 ms
53,120 KB
testcase_12 AC 298 ms
52,720 KB
testcase_13 AC 291 ms
52,804 KB
testcase_14 AC 289 ms
52,712 KB
testcase_15 AC 290 ms
52,816 KB
testcase_16 AC 291 ms
52,908 KB
testcase_17 AC 291 ms
52,804 KB
testcase_18 AC 295 ms
52,796 KB
testcase_19 AC 293 ms
52,892 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun f(p: Float, q: Float): Boolean = p*(2-q)-1>0

fun main(args: Array<String>) {
    val (p,q) = readLine()!!.split(' ').map(String::toFloat)
    println(if (f(p,q)) "YES" else "NO")
}
0