#3757
Se dau N cuvinte formate doar din primele K litere mici ale alfabetului englez și un șir xi de M numere naturale. Trebuie să se formeze M cuvinte astfel încât oricare cuvânt i (1 ≤ i ≤ M) să respecte
următoarele proprietăți:
xiK litere mici ale alfabetului englezcuv din cele N date inițial sau din celelalte M - 1 nou formate astfel încât cuv să fie prefix al cuvântului icuv din cele N date inițial sau din celelalte M - 1 nou formate astfel încât cuvântul i să fie prefix al lui cuvSă se calculeze numărul de moduri de a forma M cuvinte care respectă proprietățile de mai sus. Două moduri se consideră diferite dacă există cel puțin o poziție i pentru care al i-lea cuvânt diferă. Deoarece acest număr poate fi foarte mare, se va afișa doar restul său la împărțirea cu 1.000.000.007.
ONSEPI, 2021, clasele XI-XII
| Problema | Cuvinte10 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 512 MB
/
Stivă 128 MB
|
| Id soluție | #61263950 | Utilizator | |
| Fișier | cuvinte10.cpp | Dimensiune | 1.80 KB |
| Data încărcării | 22 Noiembrie 2025, 17:58 | Scor/rezultat | 0 puncte |
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Exited with error status 50 | 4 | 0 | ||
| 2 | 0 secunde | Exited with error status 50 | 4 | 0 | ||
| 3 | 0 secunde | Exited with error status 48 | 4 | 0 | ||
| 4 | 0 secunde | Exited with error status 48 | 5 | 0 | ||
| 5 | 0 secunde | Exited with error status 48 | 5 | 0 | ||
| 6 | 0 secunde | Exited with error status 48 | 5 | 0 | ||
| 7 | 0.36 secunde | Exited with error status 48 | 3 | 0 | ||
| 8 | 0.36 secunde | Exited with error status 48 | 4 | 0 | ||
| 9 | 0.52 secunde | Exited with error status 48 | 4 | 0 | ||
| 10 | 0.608 secunde | Exited with error status 51 | 3 | 0 | ||
| 11 | 0.608 secunde | Exited with error status 48 | 3 | 0 | ||
| 12 | 0.604 secunde | Exited with error status 32 | 3 | 0 | ||
| 13 | 0.076 secunde | Exited with error status 48 | 3 | 0 | ||
| 14 | 0.088 secunde | Exited with error status 49 | 2 | 0 | ||
| 15 | 0.088 secunde | Exited with error status 32 | 2 | 0 | ||
| 16 | 0.088 secunde | Exited with error status 32 | 2 | 0 | ||
| 17 | 0.076 secunde | Exited with error status 32 | 2 | 0 | ||
| 18 | 0.08 secunde | Exited with error status 32 | 3 | 0 | ||
| 19 | 0.608 secunde | Exited with error status 48 | 3 | 0 | ||
| 20 | 0.616 secunde | Exited with error status 48 | 4 | 0 | ||
| 21 | 0.608 secunde | Exited with error status 48 | 3 | 0 | ||
| 22 | 0.604 secunde | Exited with error status 32 | 3 | 0 | ||
| 23 | 0.604 secunde | Exited with error status 51 | 3 | 0 | ||
| 24 | 0.604 secunde | Exited with error status 51 | 3 | 0 | ||
| 25 | 0.608 secunde | Exited with error status 51 | 4 | 0 | ||
| 26 | 0.604 secunde | Exited with error status 48 | 4 | 0 | ||
| 27 | 0.588 secunde | Exited with error status 48 | 4 | 0 | ||
| 28 | 0.084 secunde | Exited with error status 48 | 4 | 0 | ||
| 29 | 0.592 secunde | Exited with error status 48 | 4 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Cuvinte10 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ă.