#1050
Avem la dispoziţie patru numere naturale N
, A
, B
, C
, precum şi trei cifre c1
, c2
, c3
distincte două câte două.
Să se determine numărul natural minim, strict mai mare decât N
, care are exact A
cifre c1
, B
cifre c2
, C
cifre c3
şi nu conţine alte cifre.
OJI 2014, Clasa a VIII-a
Problema | TCIF | Operații I/O |
![]() tcif.in /tcif.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 2 MB
/
Stivă 1 MB
|
Id soluție | #56976433 | Utilizator | |
Fișier | tcif.cpp | Dimensiune | 1017 B |
Data încărcării | 12 Martie 2025, 10:25 | Scor / rezultat | 20 puncte |
tcif.cpp: In function 'int main()': tcif.cpp:10:34: warning: unused variable 'm' [-Wunused-variable] int a,b,c,c1,c2,c3,nrcif,k=0,m,v[10005],i,minim,j; ^ tcif.cpp:10:36: warning: variable 'v' set but not used [-Wunused-but-set-variable] int a,b,c,c1,c2,c3,nrcif,k=0,m,v[10005],i,minim,j; ^ tcif.cpp:10:53: warning: unused variable 'j' [-Wunused-variable] int a,b,c,c1,c2,c3,nrcif,k=0,m,v[10005],i,minim,j; ^ tcif.cpp:11:15: warning: unused variable 'nrf' [-Wunused-variable] long long nrf,n; ^ tcif.cpp:42:20: warning: 'minim' may be used uninitialized in this function [-Wmaybe-uninitialized] fr[minim]--; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
4 | 0 secunde | OK. | 5 | 5 | ||
5 | 0 secunde | OK. | 5 | 5 | ||
6 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
11 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
12 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
13 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
14 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
15 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
16 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
17 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
18 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
19 | 0 secunde | OK. | 5 | 5 | ||
20 | 0 secunde | OK. | 5 | 5 | ||
Punctaj total | 20 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema TCIF 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ă.