#4874
Se citește de la tastatură un cuvânt s format din cel mult 10 litere mici distincte. Să se genereze în ordine alfabetică și să se afișeze toate anagramele cuvântului s în care literele alăturate nu au fost alăturate în cuvântul s.
| Problema | anagrameXI | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.4 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64998170 | Utilizator | |
| Fișier | anagramexi.cpp | Dimensiune | 1.67 KB |
| Data încărcării | 09 Iulie 2026, 10:47 | Scor/rezultat | 20 puncte |
anagramexi.cpp: In function ‘void interschimbare(char*, int*)’: anagramexi.cpp:14:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 14 | for(int i=0; i<strlen(s)-1; i++) | ~^~~~~~~~~~~~ anagramexi.cpp:16:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 16 | for(int j=i+1; j<strlen(s); j++) | ~^~~~~~~~~~ anagramexi.cpp: In function ‘void back(int)’: anagramexi.cpp:65:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 65 | for(int i=0; i<strlen(s); i++) | ~^~~~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 2 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.001 secunde | OK. | 20 | 20 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 20 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema anagrameXI 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ă.