#3915
anagrame_cv
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 | #48493784 | Utilizator | |
Fișier | anagrame_cv.cpp | Dimensiune | 989 B |
Data încărcării | 27 Ianuarie 2024, 13:19 | Scor / rezultat | 70 puncte |
anagrame_cv.cpp: In function 'void tipar()': anagrame_cv.cpp:8:22: warning: array subscript has type 'char' [-Wchar-subscripts] cout<<s[st[i]]; ^ anagrame_cv.cpp: In function 'int cond(int)': anagrame_cv.cpp:18:26: warning: array subscript has type 'char' [-Wchar-subscripts] if(strchr(voc,s[st[k]])&&strchr(voc,s[st[k-1]])) ^ anagrame_cv.cpp:18:50: warning: array subscript has type 'char' [-Wchar-subscripts] if(strchr(voc,s[st[k]])&&strchr(voc,s[st[k-1]])) ^ anagrame_cv.cpp:20:26: warning: array subscript has type 'char' [-Wchar-subscripts] if(strchr(voc,s[st[k]])==0&&strchr(voc,s[st[k-1]])==0) ^ anagrame_cv.cpp:20:53: warning: array subscript has type 'char' [-Wchar-subscripts] if(strchr(voc,s[st[k]])==0&&strchr(voc,s[st[k-1]])==0) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | Depășit | Limita de timp depășită | 20 | 0 | ||
4 | 0 secunde | OK. | 20 | 20 | ||
5 | 0 secunde | OK. | 20 | 20 | ||
6 | 0 secunde | OK. | 20 | 20 | ||
Punctaj total | 70 |
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ă.