#4253
textOJI
Scrieţi un program care să citească lungimea unei linii şi textul dat şi care să alinieze textul la stânga şi la dreapta.
OJI 2003, clasa a IX-a
Problema | textOJI | Operații I/O |
![]() textoji.in /textoji.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #56643375 | Utilizator | |
Fișier | textoji.cpp | Dimensiune | 1.92 KB |
Data încărcării | 28 Februarie 2025, 15:10 | Scor / rezultat | 30 puncte |
textoji.cpp: In function 'void solve2(int, int, int)': textoji.cpp:17:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(k!=kal.size()-1){ ^ textoji.cpp: In function 'void solve(std::string)': textoji.cpp:42:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(hamas.length()<n){ ^ textoji.cpp:50:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0;i<hamas.length();i++){ ^ textoji.cpp:61:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i =1;i<kal.size();i++){ ^ textoji.cpp:62:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(vc+kal[i].length()+1<=n){ ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
1 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
2 | 0 secunde | OK. | 10 | 10 | ||
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | OK. | 20 | 20 | ||
Punctaj total | 30 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema textOJI 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ă.