#2170
n puncte colorate dispuse în plan. Ele sunt identificate prin coordonatele lor întregi, pe axele OX și OY. Fiecare punct are asociat un număr natural între 1 și C reprezentând codul culorii lui. Un dreptunghi se numește corect dacă îndeplinește simultan următoare condiții:
n puncte date;OX, OY;Să se determine numărul maxim de dreptunghiuri corecte care se pot forma cu cele n puncte din plan.
| Problema | dreptc | Operații I/O |
dreptc.in/dreptc.out
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #61004905 | Utilizator | |
| Fișier | dreptc.cpp | Dimensiune | 1.80 KB |
| Data încărcării | 17 Noiembrie 2025, 11:27 | Scor/rezultat | 0 puncte |
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 0 | 0 secunde | Exited with error status 32 | 10 | 0 | ||
| 1 | 0 secunde | Exited with error status 255 | 10 | 0 | ||
| 2 | 0 secunde | Exited with error status 10 | 10 | 0 | ||
| 3 | 0 secunde | Exited with error status 54 | 10 | 0 | ||
| 4 | 0 secunde | Exited with error status 50 | 10 | 0 | ||
| 5 | 0 secunde | Exited with error status 48 | 10 | 0 | ||
| 6 | 0 secunde | Exited with error status 56 | 10 | 0 | ||
| 7 | 0 secunde | Exited with error status 50 | 10 | 0 | ||
| 8 | 0 secunde | Exited with error status 55 | 10 | 0 | ||
| 9 | 0 secunde | Exited with error status 53 | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema dreptc 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ă.