結果
問題 | No.1223 I hate Golf |
ユーザー |
![]() |
提出日時 | 2020-09-12 10:47:01 |
言語 | Kotlin (2.1.0) |
結果 |
AC
|
実行時間 | 366 ms / 2,000 ms |
コード長 | 300 bytes |
コンパイル時間 | 13,834 ms |
コンパイル使用メモリ | 432,352 KB |
実行使用メモリ | 57,028 KB |
最終ジャッジ日時 | 2024-12-31 10:11:06 |
合計ジャッジ時間 | 20,336 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
コンパイルメッセージ
Main.kt:8:13: warning: 'appendln(String?): kotlin.text.StringBuilder /* = java.lang.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.absfun 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()!!}