結果

問題 No.1205 Eye Drops
ユーザー face4face4
提出日時 2021-04-11 13:09:00
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 341 bytes
コンパイル時間 13,849 ms
コンパイル使用メモリ 419,988 KB
実行使用メモリ 55,108 KB
最終ジャッジ日時 2023-09-09 15:36:24
合計ジャッジ時間 26,570 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 296 ms
52,924 KB
testcase_04 AC 290 ms
52,896 KB
testcase_05 AC 296 ms
52,884 KB
testcase_06 AC 295 ms
52,788 KB
testcase_07 AC 297 ms
52,832 KB
testcase_08 AC 293 ms
52,880 KB
testcase_09 AC 298 ms
52,924 KB
testcase_10 AC 294 ms
53,232 KB
testcase_11 WA -
testcase_12 AC 294 ms
52,696 KB
testcase_13 WA -
testcase_14 AC 292 ms
52,900 KB
testcase_15 AC 296 ms
52,828 KB
testcase_16 WA -
testcase_17 AC 298 ms
53,172 KB
testcase_18 WA -
testcase_19 AC 300 ms
52,804 KB
testcase_20 AC 297 ms
52,832 KB
testcase_21 AC 294 ms
53,092 KB
testcase_22 AC 296 ms
52,916 KB
testcase_23 WA -
testcase_24 AC 300 ms
52,912 KB
testcase_25 AC 299 ms
53,112 KB
testcase_26 AC 294 ms
52,780 KB
testcase_27 AC 293 ms
53,068 KB
testcase_28 AC 292 ms
52,836 KB
testcase_29 AC 293 ms
52,844 KB
testcase_30 AC 296 ms
52,836 KB
testcase_31 AC 290 ms
53,000 KB
testcase_32 AC 291 ms
52,904 KB
testcase_33 AC 290 ms
53,036 KB
testcase_34 AC 292 ms
52,868 KB
testcase_35 AC 291 ms
52,928 KB
testcase_36 AC 287 ms
53,144 KB
testcase_37 WA -
testcase_38 AC 288 ms
52,908 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:2:10: warning: variable 'n' is never used
    val (n, m) = readLine()!!.split(" ").map{it.toInt()}
         ^

ソースコード

diff #

fun main() {
    val (n, m) = readLine()!!.split(" ").map{it.toInt()}
    var now: Long = 0
    var pos: Long = 0
    repeat(m){
        val (t, p) = readLine()!!.split(" ").map{it.toLong()}
        if(t-now > Math.abs(pos-p)){
            println("No")
            return
        }
        now = t
        pos = p
    }
    println("Yes")
}
0