#239
NrLipsa
Se dau mai multe numere naturale cu cel mult 9
cifre fiecare. Să se determine cele mai mari două numere de 3
cifre care nu se găsesc printre numerele date.
Variante Bacalaureat 2009
Problema | NrLipsa | Operații I/O |
nrlipsa.in /nrlipsa.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50829669 | Utilizator | |
Fișier | nrlipsa.cpp | Dimensiune | 634 B |
Data încărcării | 08 Mai 2024, 22:44 | Scor / rezultat | 0 puncte |
nrlipsa.cpp: In function 'int main()': nrlipsa.cpp:10:15: warning: unused variable 'n' [-Wunused-variable] long long n, x, m, a, b, p=1, c, cnt=0, lgmax=0,lg=0, smax1=LONG_MIN, smax2=LONG_MIN ,pi, pf; ^ nrlipsa.cpp:10:21: warning: unused variable 'm' [-Wunused-variable] long long n, x, m, a, b, p=1, c, cnt=0, lgmax=0,lg=0, smax1=LONG_MIN, smax2=LONG_MIN ,pi, pf; ^ nrlipsa.cpp:10:30: warning: unused variable 'p' [-Wunused-variable] long long n, x, m, a, b, p=1, c, cnt=0, lgmax=0,lg=0, smax1=LONG_MIN, smax2=LONG_MIN ,pi, pf; ^ nrlipsa.cpp:10:35: warning: unused variable 'c' [-Wunused-variable] long long n, x, m, a, b, p=1, c, cnt=0, lgmax=0,lg=0, smax1=LONG_MIN, smax2=LONG_MIN ,pi, pf; ^ nrlipsa.cpp:10:45: warning: unused variable 'lgmax' [-Wunused-variable] long long n, x, m, a, b, p=1, c, cnt=0, lgmax=0,lg=0, smax1=LONG_MIN, smax2=LONG_MIN ,pi, pf; ^ nrlipsa.cpp:10:53: warning: unused variable 'lg' [-Wunused-variable] long long n, x, m, a, b, p=1, c, cnt=0, lgmax=0,lg=0, smax1=LONG_MIN, smax2=LONG_MIN ,pi, pf; ^ nrlipsa.cpp:10:59: warning: unused variable 'smax1' [-Wunused-variable] long long n, x, m, a, b, p=1, c, cnt=0, lgmax=0,lg=0, smax1=LONG_MIN, smax2=LONG_MIN ,pi, pf; ^ nrlipsa.cpp:10:75: warning: unused variable 'smax2' [-Wunused-variable] long long n, x, m, a, b, p=1, c, cnt=0, lgmax=0,lg=0, smax1=LONG_MIN, smax2=LONG_MIN ,pi, pf; ^ nrlipsa.cpp:10:91: warning: unused variable 'pi' [-Wunused-variable] long long n, x, m, a, b, p=1, c, cnt=0, lgmax=0,lg=0, smax1=LONG_MIN, smax2=LONG_MIN ,pi, pf; ^ nrlipsa.cpp:10:95: warning: unused variable 'pf' [-Wunused-variable] long long n, x, m, a, b, p=1, c, cnt=0, lgmax=0,lg=0, smax1=LONG_MIN, smax2=LONG_MIN ,pi, pf; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | Depășit | Limita de timp depășită | 20 | 0 | Exemplu | |
2 | Depășit | Limita de timp depășită | 20 | 0 | ||
3 | Depășit | Limita de timp depășită | 60 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema NrLipsa 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ă.