#1081
Se dă un număr raţional strict pozitiv q, sub formă de fracţie zecimală.
Să se determine două numere naturale a şi b astfel \( q= \frac{a}{b} \) încât iar modulul diferenţei dintre a şi b să fie minim.
OJI 2010, Clasa a IX-a
| Problema | Numar3 | Operații I/O |
numar3.in/numar3.out
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 2 MB
/
Stivă 1 MB
|
| Id soluție | #62936429 | Utilizator | |
| Fișier | numar3.pas | Dimensiune | 1.10 KB |
| Data încărcării | 07 Februarie 2026, 11:32 | Scor/rezultat | 0 puncte |
Free Pascal Compiler version 2.6.2-8 [2014/01/22] for i386 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Linux for i386 Compiling numar3.pas numar3.pas(25,11) Note: Local variable "j" not used Linking the.exe 67 lines compiled, 0.3 sec 1 note(s) issued /usr/bin/ld.bfd: warning: link.res contains output sections; did you forget -T?
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 2 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 3 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 4 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 5 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 6 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 7 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 8 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 9 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 10 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 11 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 12 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 13 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 14 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 15 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 16 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 17 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 18 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 19 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| 20 | 0 secunde | Exited with error status 2 | 5 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Numar3 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ă.