結果

問題 No.1395 Less Sweet Alchemy
ユーザー ID 21712
提出日時 2024-12-14 22:33:46
言語 Go
(1.23.4)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 261 bytes
コンパイル時間 10,988 ms
コンパイル使用メモリ 224,948 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-14 22:33:59
合計ジャッジ時間 11,677 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import . "fmt"

func main() {
	var n,x int
	Scan(&n,&x)
	var a,b,c int
	for ;n>0;n-- {
		var z int
		Scan(&z)
		if z<x {
			a++
		} else if z>x {
			c++
		} else {
			b++
		}
	}
	if b>0||(a>0&&c>0) {
		Println("Yes")
	} else {
		Println("No")
	}
}
0