#1883
UEMM
Se dă un șir cu n
elemente, numere naturale. Să se afișeze, pentru fiecare element din șir, valoarea din șir aflată după acesta și mai mare decât acesta. Dacă o asemenea valoare nu există, se va afișa -1
.
Problema | UEMM | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #44575930 | Utilizator | |
Fișier | uemm.cpp | Dimensiune | 538 B |
Data încărcării | 11 Septembrie 2023, 14:26 | Scor / rezultat | 100 puncte |
uemm.cpp: In function 'int main()': uemm.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; ^ uemm.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; ^ uemm.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; ^ uemm.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; ^ uemm.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; ^ uemm.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; ^ uemm.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; ^ uemm.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; ^ uemm.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; ^ uemm.cpp:12:63: warning: unused variable 'st' [-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. | 20 | 20 | Exemplu | |
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 UEMM 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ă.