結果
| 問題 | No.1395 Less Sweet Alchemy |
| コンテスト | |
| ユーザー |
tk
|
| 提出日時 | 2022-04-29 01:38:35 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| + 350µs | |
| コード長 | 247 bytes |
| 記録 | |
| コンパイル時間 | 732 ms |
| コンパイル使用メモリ | 95,984 KB |
| 実行使用メモリ | 78,976 KB |
| 最終ジャッジ日時 | 2026-07-31 19:37:06 |
| 合計ジャッジ時間 | 2,842 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
n,x = map(int,input().split())
a = list(map(int,input().split()))
a.sort()
t_1 = False
t_2 = False
for i in range(n):
if a[i] <= x:
t_1 = True
if a[i] >= x:
t_2 = True
if t_1 and t_2:
print("Yes")
else:
print("No")
tk