結果

問題 No.46 はじめのn歩
ユーザー バカらっく
提出日時 2019-09-09 18:24:43
言語 Kotlin
(2.1.0)
結果
AC  
実行時間 324 ms / 5,000 ms
コード長 197 bytes
コンパイル時間 12,457 ms
コンパイル使用メモリ 436,132 KB
実行使用メモリ 51,964 KB
最終ジャッジ日時 2024-06-28 12:58:59
合計ジャッジ時間 15,158 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'arr' is never used
fun main(arr:Array<String>) {
         ^

ソースコード

diff #

fun main(arr:Array<String>) {
    val (oneStep, total) = readLine()!!.split(" ").map { it.toLong() }
    val ans = total / oneStep + (if (total % oneStep == 0.toLong()) 0 else 1)
    print(ans)
}

0