#955
Fie N un număr natural nenul şi N numere naturale nenule: x1, x2,…, xN.
Fie P produsul acestor N numere, P=x1•x2•...•xN.
Scrieţi un program care să citească numerele N, x1, x2,…, xN şi apoi să determine:
a) cifra zecilor produsului P;
b) cel mai mic număr natural Y, pentru care există numărul natural K astfel încât YK=P.
Concursul National Grigore Moisil, Lugoj, 2013
| Problema | Miny | Operații I/O |
miny.in/miny.out
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64474601 | Utilizator | |
| Fișier | miny.cpp | Dimensiune | 385 B |
| Data încărcării | 09 Mai 2026, 12:23 | Scor/rezultat | 20 puncte |
miny.cpp: In function ‘int main()’: miny.cpp:18:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 18 | for( int i = 0; i < n; i++ ) | ^~~ miny.cpp:21:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 21 | cout << p % 100 / 10; | ^~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Corect a ! Incorect b ! | 5 | 1 | Exemplu | |
| 2 | 0.001 secunde | Corect a ! Incorect b ! | 5 | 1 | Exemplu | |
| 3 | 0.001 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 4 | 0.001 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 5 | 0.001 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 6 | 0.001 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 7 | 0.001 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 8 | 0.002 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 9 | 0.002 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 10 | 0.011 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 11 | 0.002 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 12 | 0.002 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 13 | 0.005 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 14 | 0.002 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 15 | 0.002 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 16 | 0.002 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 17 | 0.007 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 18 | 0.004 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 19 | 0.004 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| 20 | 0.004 secunde | Corect a ! Incorect b ! | 5 | 1 | ||
| Punctaj total | 20 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Miny 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ă.