Test grupa A
Problema 1
Cerinţa
Se citesc două numere naturale n și m. Să se decidă dacă cele două numere au cel puțin o cifră comună.
Date de intrare
Programul citește de la tastatură numerele n și m.
Date de ieşire
Programul afișează pe ecran mesajul DA, dacă cele două numere au cel puțin o cifră comună, respectiv NU în caz contrar.
Restricţii şi precizări
1 ≤ n, m ≤ 1.000.000.000
Exemplu
Date de intrare: 173954 889205
Date de ieșire: DA
Problema 2
Cerința
Se dă un șir cu n elemente, numere naturale. Determinați diferența în valoare absolută dintre numărul de valori pare din șir și numărul de valori impare din șir.
Date de intrare
Programul citește de la tastatură numărul n, iar apoi n numere naturale, reprezentând elementele șirului.
Date de ieșire
Programul va afișa pe ecran numărul C, reprezentând valoarea cerută.
Restricții și precizări
1 ≤ n ≤ 1000
cele n numere citite vor fi mai mici decât 1.000.000.000
Exemplu
Intrare: 5
15 245 28 33 11
Ieșire: 3
Explicație
Sunt 4 numere impare și un număr par în șir, deci diferența este 3.
Problema 3
Se dă un vector cu n
elemente numere naturale. Să se verifice dacă are elementele ordonate crescător.
15 Comments
racing tv day pass
- 28/12/2022 at 05:10Good article with great ideas! Thank you for this important article. Thank you very much for this wonderful information. rtl live kostenlos
Solar uyumlu Sandviç panel fiyatları
- 13/01/2023 at 17:06Thank you for great content. I look forward to the continuation. https://yoykem.com.tr/
kadriye baştürk elbise
- 13/01/2023 at 21:39Nice post. I learn something new and challenging on blogs I stumbleupon on a daily basis. https://no19butik.com/
farmasi temsilci
- 14/01/2023 at 02:32Some really excellent info Sword lily I detected this. https://farmasiucretsizuyelik.com/
JamesCor
- 26/01/2023 at 19:07https://over-the-counter-drug.com/# walgreens sleep aids over the counter
Dostromkn
- 04/03/2023 at 02:22What are 4 ways of controlling parasites order Stromectol 12 mg
canada pharmacy online reviews
- 11/03/2023 at 12:22canadian mail order drug companies
authoke
- 14/03/2023 at 08:23priligy tablets reviews dapoxetine 60 mg price dapoxetine buy.
Icqastf
- 17/03/2023 at 11:36Is it OK to have coffee with antibiotics stromectol mites?
Imyj52v
- 19/03/2023 at 08:32Do antibiotics harm gut bacteria azithromycin cost?
axoxils
- 19/03/2023 at 11:46acheter viagra en ligne france viagra homme ou acheter viagra.
bopfpdr
- 22/03/2023 at 21:11clomid ovulation
Irbkqqc
- 23/03/2023 at 11:54What did Melissa Mccarthy use to lose weight priligy tablets?
qqhdhy
- 24/03/2023 at 02:32zithromax antibiotic dosage azithromycin for chlamydia treatment azithromycin 250 mg dose pack
watch horse racing live
- 24/03/2023 at 16:45This post post made me think. I will write something about this on my blog. Have a nice day!! newsmax tv live streaming