結果

問題 No.1205 Eye Drops
コンテスト
ユーザー face4
提出日時 2021-04-11 13:10:14
言語 Kotlin
(2.4.21 + ACL)
コンパイル:
kotlinc -cp /opt/aclib/ac_library.jar _filename_ -include-runtime -d main.jar
実行:
java -cp main.jar:/opt/aclib/ac_library.jar _class_
結果
AC  
実行時間 309 ms / 2,000 ms
+ 285µs
コード長 341 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 7,747 ms
コンパイル使用メモリ 511,140 KB
実行使用メモリ 59,720 KB
最終ジャッジ日時 2026-10-15 06:05:49
合計ジャッジ時間 15,121 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 40
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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