#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 | #58559155 | Utilizator | |
Fișier | nrlipsa.cs | Dimensiune | 1.75 KB |
Data încărcării | 18 Iunie 2025, 12:14 | Scor / rezultat | Eroare de compilare |
Compilation failed: 8 error(s), 0 warnings nrlipsa.cs(15,35): error CS1061: Type \`string[]' does not contain a definition for \`length' and no extension method \`length' of type \`string[]' could be found. Are you missing an assembly reference? /usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error) nrlipsa.cs(27,42): error CS0103: The name \`bucati' does not exist in the current context nrlipsa.cs(40,24): error CS0029: Cannot implicitly convert type \`int' to \`int[]' nrlipsa.cs(44,28): error CS0019: Operator \`&&' cannot be applied to operands of type \`bool' and \`int[]' nrlipsa.cs(48,24): error CS0029: Cannot implicitly convert type \`int[]' to \`int' nrlipsa.cs(49,22): error CS0023: The \`++' operator cannot be applied to operand of type \`int[]' nrlipsa.cs(55,13): error CS0019: Operator \`<' cannot be applied to operands of type \`int[]' and \`int' nrlipsa.cs(57,29): error CS0103: The name \`lipsa' does not exist in the current context
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ă.