#1151
VerifEgaleDivImp
Se dă un vector cu n
elemente numere naturale. Folosind metoda Divide et Impera să se verifice dacă toate elementele vectorului sunt egale.
Problema | VerifEgaleDivImp | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50898453 | Utilizator | |
Fișier | verifegaledivimp.c | Dimensiune | 523 B |
Data încărcării | 13 Mai 2024, 12:33 | Scor / rezultat | 100 puncte |
verifegaledivimp.c: In function 'main': verifegaledivimp.c:23:5: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] scanf("%d",&n); ^ verifegaledivimp.c:23:5: warning: incompatible implicit declaration of built-in function 'scanf' [enabled by default] verifegaledivimp.c:29:5: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] printf("DA"); ^ verifegaledivimp.c:29:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] verifegaledivimp.c:31:9: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("NU"); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | ||
2 | 0 secunde | OK. | 20 | 20 | ||
3 | 0 secunde | OK. | 20 | 20 | ||
4 | 0 secunde | OK. | 20 | 20 | ||
5 | 0 secunde | OK. | 20 | 20 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema VerifEgaleDivImp face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.