結果

問題 No.1395 Less Sweet Alchemy
コンテスト
ユーザー zeronosu77108
提出日時 2021-02-17 12:46:07
言語 Kotlin
(2.4.10)
コンパイル:
kotlinc _filename_ -include-runtime -d main.jar
実行:
kotlin main.jar
結果
AC  
実行時間 199 ms / 2,000 ms
+ 492µs
コード長 288 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 11,061 ms
コンパイル使用メモリ 497,948 KB
実行使用メモリ 54,084 KB
最終ジャッジ日時 2026-08-26 16:06:16
合計ジャッジ時間 15,691 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import kotlin.collections.*
import kotlin.math.*

fun main() {
    val (n, x) = readLine()!!.split(" ").map { it.toInt() }
    val c = readLine()!!.split(" ").map { it.toInt() }

    if (c.min()!! <= x && x <= c.max()!!) {
        println("Yes")
    } else {
        println("No")
    }
}
0