#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 | #50767864 | Utilizator | |
Fișier | textoji.cpp | Dimensiune | 1.68 KB |
Data încărcării | 01 Mai 2024, 13:22 | Scor / rezultat | 20 puncte |
textoji.cpp: In function 'std::string spatiere(std::string)': textoji.cpp:43:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (n == cuv_temp.size() - 1) ^ textoji.cpp: In function 'std::string impartire(int)': textoji.cpp:64:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (k < cuvinte[i].size()) ^ textoji.cpp:66:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (s + cuvinte[i][k].size() + 1 <= Max) ^ textoji.cpp: In function 'int main()': textoji.cpp:96:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < paragrafe.size(); i++) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | OK. | 10 | 10 | ||
1 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | OK. | 10 | 10 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 20 |
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ă.