#3781
Fie x un număr real subunitar cu cel mult 9 zecimale și N un număr natural. Să se determine fracția ireductibilă \( \frac{a}{b} \) cu proprietățile:
x, adică expresia \( |x-\frac{a}{b}| \) are valoare minimă1 ≤ b ≤ N| Problema | aprox | Operații I/O |
aprox.in/aprox.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #45731591 | Utilizator | |
| Fișier | aprox.cpp | Dimensiune | 1.10 KB |
| Data încărcării | 19 Octombrie 2023, 23:43 | Scor/rezultat | 66 puncte |
aprox.cpp: In function 'int main()': aprox.cpp:38:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 1; i <= v.size(); i++) ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 0 | 0 secunde | OK. | 4 | 4 | ||
| 1 | 0 secunde | OK. | 5 | 5 | ||
| 2 | 0 secunde | OK. | 5 | 5 | ||
| 3 | 0 secunde | OK. | 5 | 5 | ||
| 4 | 0 secunde | OK. | 5 | 5 | ||
| 5 | 0 secunde | OK. | 4 | 4 | ||
| 6 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 7 | 0 secunde | OK. | 4 | 4 | ||
| 8 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
| 9 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
| 10 | 0 secunde | OK. | 2 | 2 | ||
| 11 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
| 12 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
| 13 | 0 secunde | OK. | 2 | 2 | ||
| 14 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
| 15 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
| 16 | 0 secunde | OK. | 3 | 3 | ||
| 17 | 0 secunde | OK. | 3 | 3 | ||
| 18 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
| 19 | 0 secunde | OK. | 3 | 3 | ||
| 20 | 0 secunde | OK. | 3 | 3 | ||
| 21 | 0 secunde | OK. | 3 | 3 | ||
| 22 | 0 secunde | OK. | 3 | 3 | ||
| 23 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
| 24 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
| 25 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
| 26 | 0 secunde | OK. | 3 | 3 | ||
| 27 | 0 secunde | OK. | 3 | 3 | ||
| 28 | 0 secunde | OK. | 3 | 3 | ||
| 29 | 0 secunde | OK. | 3 | 3 | ||
| Punctaj total | 66 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema aprox 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ă.