#88
Să se verifice dacă un cuvânt dat este palindrom.
| Problema | Palindrom | Operații I/O |
palindrom.in/palindrom.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #62048232 | Utilizator | |
| Fișier | palindrom.cpp | Dimensiune | 803 B |
| Data încărcării | 04 Ianuarie 2026, 22:21 | Scor/rezultat | 100 puncte |
palindrom.cpp: In function 'int main()': palindrom.cpp:19:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(q=0; q<s.size()/2; q++) ^ palindrom.cpp:23:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(c==s.size()/2) fout<<1<<"\n"; ^ palindrom.cpp:28:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(q=0; q<s.size()/2+1; q++) ^ palindrom.cpp:32:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(c==s.size()/2+1) fout<<1<<"\n"; ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0 secunde | OK. | 50 | 50 | ||
| 3 | 0 secunde | OK. | 40 | 40 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Palindrom 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ă.