結果

問題 No.1395 Less Sweet Alchemy
コンテスト
ユーザー ID 21712
提出日時 2024-12-14 22:33:46
言語 Go
(1.27.3 + ACL)
コンパイル:
/usr/bin/go_c
実行:
./Main
結果
AC  
実行時間 1 ms / 2,000 ms
+ 803µs
コード長 261 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 16,210 ms
コンパイル使用メモリ 258,500 KB
実行使用メモリ 9,924 KB
最終ジャッジ日時 2026-11-07 20:11:06
合計ジャッジ時間 11,949 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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