結果
| 問題 | No.1223 I hate Golf | 
| コンテスト | |
| ユーザー |  rutilicus | 
| 提出日時 | 2020-09-12 10:47:01 | 
| 言語 | Kotlin (2.1.0) | 
| 結果 | 
                                CE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 300 bytes | 
| コンパイル時間 | 7,832 ms | 
| コンパイル使用メモリ | 416,532 KB | 
| 最終ジャッジ日時 | 2025-04-23 18:48:12 | 
| 合計ジャッジ時間 | 8,660 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
            
            
            
            
            ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
Main.kt:8:13: error: 'fun StringBuilder.appendln(value: String?): StringBuilder' is deprecated. Use appendLine instead. Note that the new method always appends the line feed character '\n' regardless of the system line separator.
    builder.appendln(if ((abs(n) + k - 1L) / k <= t) "Yes" else "No")
            ^^^^^^^^
            
            ソースコード
import kotlin.math.abs
fun main() {
    val builder = StringBuilder()
    val (n, k, t) = readInputLine().split(" ").map { it.toLong() }
    builder.appendln(if ((abs(n) + k - 1L) / k <= t) "Yes" else "No")
    print(builder.toString())
}
fun readInputLine(): String {
    return readLine()!!
}
            
            
            
        