結果
| 問題 |
No.998 Four Integers
|
| コンテスト | |
| ユーザー |
rhincodon66
|
| 提出日時 | 2020-02-28 21:21:47 |
| 言語 | Kotlin (2.1.0) |
| 結果 |
AC
|
| 実行時間 | 333 ms / 1,000 ms |
| コード長 | 269 bytes |
| コンパイル時間 | 13,007 ms |
| コンパイル使用メモリ | 438,560 KB |
| 実行使用メモリ | 60,468 KB |
| 最終ジャッジ日時 | 2024-11-30 22:58:35 |
| 合計ジャッジ時間 | 21,894 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used
fun main(args:Array<String>){
^
ソースコード
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")
}
rhincodon66