結果

問題 No.1205 Eye Drops
ユーザー face4face4
提出日時 2021-04-11 13:10:14
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 650 ms / 2,000 ms
コード長 341 bytes
コンパイル時間 11,906 ms
コンパイル使用メモリ 411,764 KB
実行使用メモリ 57,724 KB
最終ジャッジ日時 2023-09-09 15:38:31
合計ジャッジ時間 26,162 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 288 ms
52,972 KB
testcase_01 AC 284 ms
53,000 KB
testcase_02 AC 323 ms
53,312 KB
testcase_03 AC 287 ms
53,244 KB
testcase_04 AC 292 ms
52,968 KB
testcase_05 AC 300 ms
53,284 KB
testcase_06 AC 300 ms
53,036 KB
testcase_07 AC 284 ms
52,796 KB
testcase_08 AC 288 ms
52,836 KB
testcase_09 AC 295 ms
52,864 KB
testcase_10 AC 302 ms
52,912 KB
testcase_11 AC 322 ms
53,236 KB
testcase_12 AC 294 ms
52,956 KB
testcase_13 AC 301 ms
53,032 KB
testcase_14 AC 317 ms
53,548 KB
testcase_15 AC 298 ms
53,196 KB
testcase_16 AC 296 ms
53,396 KB
testcase_17 AC 281 ms
52,916 KB
testcase_18 AC 291 ms
53,008 KB
testcase_19 AC 284 ms
52,840 KB
testcase_20 AC 315 ms
53,444 KB
testcase_21 AC 294 ms
52,952 KB
testcase_22 AC 302 ms
52,904 KB
testcase_23 AC 322 ms
53,428 KB
testcase_24 AC 286 ms
52,780 KB
testcase_25 AC 280 ms
53,152 KB
testcase_26 AC 288 ms
53,032 KB
testcase_27 AC 285 ms
52,920 KB
testcase_28 AC 308 ms
53,132 KB
testcase_29 AC 285 ms
53,048 KB
testcase_30 AC 289 ms
52,908 KB
testcase_31 AC 289 ms
52,888 KB
testcase_32 AC 283 ms
53,000 KB
testcase_33 AC 283 ms
53,288 KB
testcase_34 AC 281 ms
52,888 KB
testcase_35 AC 280 ms
52,920 KB
testcase_36 AC 278 ms
52,836 KB
testcase_37 AC 650 ms
57,724 KB
testcase_38 AC 276 ms
53,020 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