結果

問題 No.998 Four Integers
コンテスト
ユーザー rhincodon66
提出日時 2020-02-28 21:21:47
言語 Kotlin
(2.3.20)
コンパイル:
kotlinc _filename_ -include-runtime -d main.jar
実行:
kotlin main.jar
結果
AC  
実行時間 197 ms / 1,000 ms
コード長 269 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 12,119 ms
コンパイル使用メモリ 464,128 KB
実行使用メモリ 56,536 KB
最終ジャッジ日時 2026-05-24 12:51:48
合計ジャッジ時間 13,823 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import java.util.*

fun main(args:Array<String>){
    solve()
}

fun solve(){
    val a = readLine()!!.split(" ").map{it.toInt()}.sorted()
    var ok = true
    for(i in 0 until 3){
        if(a[i] + 1 != a[i + 1]) ok = false
    }
    println(if(ok) "Yes" else "No")
}
0