#1105
Fie un număr natural N. Spunem că (a, b, c) este un triplet geometric limitat de N, dacă a, b și c sunt trei numere naturale astfel încât 1 ≤ a < b < c ≤ N și \( b = \sqrt {a \cdot c} \).
Să se determine numărul tripletelor geometrice limitate de numărul natural N.
ONI 2014, Clasa a IX-a
| Problema | TG | Operații I/O |
tg.in/tg.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #8793441 | Utilizator | |
| Fișier | tg.cpp | Dimensiune | 328 B |
| Data încărcării | 12 Martie 2018, 21:46 | Scor/rezultat | 0 puncte |
tg.cpp: In function 'int main()': tg.cpp:7:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("tg.in", "r", stdin); ^ tg.cpp:8:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("tg.out", "w", stdout); ^ tg.cpp:9:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &N); ^
| 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 | Raspuns gresit. | 5 | 0 | ||
| 5 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 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 | Raspuns gresit. | 5 | 0 | ||
| 20 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema TG 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ă.