結果
問題 | No.998 Four Integers |
ユーザー | バカらっく |
提出日時 | 2022-02-03 12:37:53 |
言語 | Kotlin (2.1.0) |
結果 |
AC
|
実行時間 | 372 ms / 1,000 ms |
コード長 | 190 bytes |
コンパイル時間 | 12,227 ms |
コンパイル使用メモリ | 425,808 KB |
実行使用メモリ | 55,436 KB |
最終ジャッジ日時 | 2024-06-11 09:48:58 |
合計ジャッジ時間 | 22,384 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used fun main(args: Array<String>) { ^
ソースコード
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") }