#3915
Se citește de la tastatură un cuvânt s format din cel mult 11 litere mici distincte. Să se genereze în ordine alfabetică și să se afișeze toate anagramele cuvântului s în care nu există două vocale alăturate și nici două consoane alăturate.
| Problema | anagrame_cv | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64262886 | Utilizator | |
| Fișier | anagrame_cv.cpp | Dimensiune | 1.20 KB |
| Data încărcării | 27 Aprilie 2026, 08:49 | Scor/rezultat | 10 puncte |
anagrame_cv.cpp: In function ‘bool verif(int, int)’: anagrame_cv.cpp:25:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 25 | if(i>1); | ^~ anagrame_cv.cpp:26:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 26 | if(strchr("aeiou",c[s[i-1]])&&strchr("aeiou",c[j])) return false; | ^~ anagrame_cv.cpp:27:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 27 | if(i>1); | ^~ anagrame_cv.cpp:28:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 28 | if(strchr("aeiou",c[s[i-1]])&&strchr("aeiou",c[j])==0) return false; | ^~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| 2 | 0.001 secunde | OK. | 10 | 10 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 10 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema anagrame_cv 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ă.