結果

問題 No.994 ばらばらコイン
ユーザー Respect2DRespect2D
提出日時 2020-02-21 21:29:08
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 339 ms / 2,000 ms
コード長 214 bytes
コンパイル時間 12,135 ms
コンパイル使用メモリ 427,108 KB
実行使用メモリ 54,120 KB
最終ジャッジ日時 2024-04-17 07:23:44
合計ジャッジ時間 19,750 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 331 ms
54,120 KB
testcase_01 AC 327 ms
51,060 KB
testcase_02 AC 331 ms
51,064 KB
testcase_03 AC 329 ms
51,080 KB
testcase_04 AC 329 ms
51,068 KB
testcase_05 AC 338 ms
50,820 KB
testcase_06 AC 336 ms
51,044 KB
testcase_07 AC 335 ms
50,816 KB
testcase_08 AC 335 ms
50,816 KB
testcase_09 AC 333 ms
51,068 KB
testcase_10 AC 331 ms
51,120 KB
testcase_11 AC 333 ms
51,068 KB
testcase_12 AC 325 ms
50,884 KB
testcase_13 AC 339 ms
51,012 KB
testcase_14 AC 324 ms
50,964 KB
testcase_15 AC 330 ms
50,812 KB
testcase_16 AC 329 ms
50,956 KB
testcase_17 AC 327 ms
50,860 KB
testcase_18 AC 318 ms
51,136 KB
testcase_19 AC 326 ms
51,056 KB
testcase_20 AC 323 ms
51,056 KB
testcase_21 AC 322 ms
50,908 KB
testcase_22 AC 318 ms
50,892 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val n = sc.nextInt()
    val k = sc.nextInt()
    if (n < k) {
        println(-1)
        return
    }
    println(k - 1)
}
0