#1960
Perfecte
Se dă un șir de n
numere naturale nenule. Pentru fiecare element din șir se va afișa valoarea 1
dacă acesta este perfect sau 0
în caz contrar.
Problema | Perfecte | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 1 MB
/
Stivă 1 MB
|
Id soluție | #44575972 | Utilizator | |
Fișier | perfecte.cpp | Dimensiune | 525 B |
Data încărcării | 11 Septembrie 2023, 14:36 | Scor / rezultat | 10 puncte |
perfecte.cpp: In function 'int main()': perfecte.cpp:12:6: warning: unused variable 'i' [-Wunused-variable] int i = 0, j = 0, k = 1, a, b,p=1,h1=0,g1=1,max=0,min=0,dr=0,st=0; ^ perfecte.cpp:12:13: warning: unused variable 'j' [-Wunused-variable] int i = 0, j = 0, k = 1, a, b,p=1,h1=0,g1=1,max=0,min=0,dr=0,st=0; ^ perfecte.cpp:12:20: warning: unused variable 'k' [-Wunused-variable] int i = 0, j = 0, k = 1, a, b,p=1,h1=0,g1=1,max=0,min=0,dr=0,st=0; ^ perfecte.cpp:12:30: warning: unused variable 'b' [-Wunused-variable] int i = 0, j = 0, k = 1, a, b,p=1,h1=0,g1=1,max=0,min=0,dr=0,st=0; ^ perfecte.cpp:12:32: warning: unused variable 'p' [-Wunused-variable] int i = 0, j = 0, k = 1, a, b,p=1,h1=0,g1=1,max=0,min=0,dr=0,st=0; ^ perfecte.cpp:12:36: warning: unused variable 'h1' [-Wunused-variable] int i = 0, j = 0, k = 1, a, b,p=1,h1=0,g1=1,max=0,min=0,dr=0,st=0; ^ perfecte.cpp:12:41: warning: unused variable 'g1' [-Wunused-variable] int i = 0, j = 0, k = 1, a, b,p=1,h1=0,g1=1,max=0,min=0,dr=0,st=0; ^ perfecte.cpp:12:46: warning: unused variable 'max' [-Wunused-variable] int i = 0, j = 0, k = 1, a, b,p=1,h1=0,g1=1,max=0,min=0,dr=0,st=0; ^ perfecte.cpp:12:52: warning: unused variable 'min' [-Wunused-variable] int i = 0, j = 0, k = 1, a, b,p=1,h1=0,g1=1,max=0,min=0,dr=0,st=0; ^ perfecte.cpp:12:58: warning: unused variable 'dr' [-Wunused-variable] int i = 0, j = 0, k = 1, a, b,p=1,h1=0,g1=1,max=0,min=0,dr=0,st=0; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 5 | 5 | ||
2 | 0 secunde | OK. | 5 | 5 | ||
3 | Depășit | Limita de timp depășită | 10 | 0 | ||
4 | Depășit | Limita de timp depășită | 20 | 0 | ||
5 | Depășit | Limita de timp depășită | 20 | 0 | ||
6 | Depășit | Limita de timp depășită | 20 | 0 | ||
7 | Depășit | Limita de timp depășită | 20 | 0 | ||
Punctaj total | 10 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Perfecte 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ă.