#3155
anagrame4
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 consoanele sunt puncte fixe.
Problema | anagrame4 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #27793038 | Utilizator | |
Fișier | anagrame4.cpp | Dimensiune | 686 B |
Data încărcării | 11 Februarie 2021, 11:03 | Scor / rezultat | 100 puncte |
anagrame4.cpp: In function 'void afisare()': anagrame4.cpp:11:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(short i=0; i<strlen(cuv); i++) ^ anagrame4.cpp:16:20: warning: array subscript has type 'char' [-Wchar-subscripts] cout << sol[vindx++]; ^ anagrame4.cpp: In function 'int main()': anagrame4.cpp:45:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(short i=0; i<strlen(cuv); i++) ^ anagrame4.cpp:48:12: warning: array subscript has type 'char' [-Wchar-subscripts] voc[vindx++] = cuv[i]; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | OK. | 20 | 20 | ||
3 | 0 secunde | OK. | 20 | 20 | ||
4 | 0 secunde | OK. | 20 | 20 | ||
5 | 0 secunde | OK. | 20 | 20 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema anagrame4 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ă.