結果

問題 No.998 Four Integers
ユーザー バカらっくバカらっく
提出日時 2022-02-03 12:37:53
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 312 ms / 1,000 ms
コード長 190 bytes
コンパイル時間 12,412 ms
コンパイル使用メモリ 413,508 KB
実行使用メモリ 57,220 KB
最終ジャッジ日時 2023-09-02 03:10:56
合計ジャッジ時間 20,766 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 301 ms
57,108 KB
testcase_01 AC 312 ms
57,216 KB
testcase_02 AC 305 ms
56,804 KB
testcase_03 AC 309 ms
57,124 KB
testcase_04 AC 307 ms
56,796 KB
testcase_05 AC 305 ms
57,220 KB
testcase_06 AC 304 ms
57,020 KB
testcase_07 AC 303 ms
56,932 KB
testcase_08 AC 301 ms
56,892 KB
testcase_09 AC 297 ms
57,036 KB
testcase_10 AC 301 ms
56,796 KB
testcase_11 AC 299 ms
57,164 KB
testcase_12 AC 307 ms
56,980 KB
testcase_13 AC 307 ms
57,128 KB
testcase_14 AC 308 ms
56,960 KB
testcase_15 AC 299 ms
56,956 KB
testcase_16 AC 303 ms
56,944 KB
testcase_17 AC 298 ms
56,972 KB
testcase_18 AC 302 ms
56,976 KB
testcase_19 AC 310 ms
57,032 KB
testcase_20 AC 303 ms
56,976 KB
testcase_21 AC 305 ms
56,936 KB
testcase_22 AC 304 ms
57,052 KB
testcase_23 AC 306 ms
56,972 KB
testcase_24 AC 298 ms
57,212 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    val abcd = readLine()!!.split(" ").map { it.toInt() }.sorted()
    println(if((1 until abcd.size).all { abcd[it] == abcd[it-1] + 1 }) "Yes" else "No")
}

0