#96
PalindromMaxim
Să se scrie un program care citește o propoziție și determină cuvântul palindrom de lungime maximă.
Problema | PalindromMaxim | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #44241254 | Utilizator | |
Fișier | palindrommaxim.cpp | Dimensiune | 993 B |
Data încărcării | 18 Iulie 2023, 16:37 | Scor / rezultat | 60 puncte |
palindrommaxim.cpp: In function 'int main()': palindrommaxim.cpp:13:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (i < text.length() - 1) { ^ palindrommaxim.cpp:15:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (j < text.length() && !strchr(":;.j ", text[j])) { ^ palindrommaxim.cpp:18:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (j < text.length()) { ^ palindrommaxim.cpp:26:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (j - i > max_word.length()) { ^ palindrommaxim.cpp:34:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (i < text.length() - 1 && strchr(":;.j ", text[i])) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 40 | 0 | ||
3 | 0 secunde | OK. | 40 | 40 | ||
Punctaj total | 60 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PalindromMaxim 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ă.