Masala #AZ46KUQOFN

Xotira 32 MB Vaqt 1000 ms
14
Muallif: DoNo0425

Sotib olish mumkinmi ?

Har bir do'konda bir pachkasida N ta ruchka bo'lgan ruchkalar to'plami sotiladi , siz hech qaysi pachkani buzmasdan aynan K ta ruchka olmoqchisiz buni qila olasizmi? Eslatib o'tamiz har bir do'kondan faqatgina bitta mahsulot harid qilish mumkin


Kiruvchi ma'lumotlar:

N va K nechta magazin borligi hamda sotib olmoqchi bo'lgan ruchkalar soni 

Keyingi qatorda har bir do'konda bir packasida nechta ruchka borligini ifodalovchi sonlar beriladi. Hech qaysi son 1000dan oshib ketmaydi


Chiquvchi ma'lumotlar:

Agar sotib ola olsangiz ‘yes’ aks holda ‘no’ deb chiqaring.


Misollar
# input.txt output.txt
1
3 6
3 4 3
yes
Izoh:
A simple illustration of three packs of pens. The first pack has 1 pen, the second pack has 2 pens, and the third pack has 3 pens. Each pack is labeled with numbers 1, 2, and 3 to indicate the number of pens. The pens are colorful, neatly arranged, and the background is white.
 

Birinchi testda :

N=3 va K=6

Ni=[3,4,3]

Siz 1chi va 3chi do'konlardan pachkasida 3 ta ro'chka bo'lgan ro'chkalarni hamda 3chi do'kondan pachkasida 3 ta ro'chka bo'lgan ro'chkalar to'plamini olasiz va sizda jami 6 ta ro'chka bo'ladi shuning uchun javob ‘yes’