結果

問題 No.46 はじめのn歩
ユーザー javyjavy
提出日時 2015-11-02 21:23:38
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 297 ms / 5,000 ms
コード長 340 bytes
コンパイル時間 11,751 ms
コンパイル使用メモリ 427,152 KB
実行使用メモリ 50,940 KB
最終ジャッジ日時 2024-04-30 02:54:54
合計ジャッジ時間 14,179 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 297 ms
50,784 KB
testcase_01 AC 295 ms
50,636 KB
testcase_02 AC 292 ms
50,808 KB
testcase_03 AC 292 ms
50,688 KB
testcase_04 AC 292 ms
50,672 KB
testcase_05 AC 293 ms
50,848 KB
testcase_06 AC 297 ms
50,720 KB
testcase_07 AC 293 ms
50,832 KB
testcase_08 AC 288 ms
50,688 KB
testcase_09 AC 290 ms
50,940 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:6:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

/**
 * Created by hichikawa on 2015/11/01.
 */

fun main(args: Array<String>) {
    val str = readLine() as String
    val strArray = str.split(" ")
    val numA = strArray[0].toLong()
    val numB = strArray[1].toLong()
    if(numB % numA == 0.toLong()) {
        println(numB / numA)
    } else {
        println(numB / numA + 1)
    }
}
0