#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 | #51461260 | Utilizator | |
Fișier | textoji.cpp | Dimensiune | 1.18 KB |
Data încărcării | 21 Iunie 2024, 00:41 | Scor / rezultat | 10 puncte |
textoji.cpp: In function 'void sol()': textoji.cpp:20:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(crt + 1 + strlen(instr) <= l) ^ textoji.cpp:31:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i < sol.size(); i++) ^ textoji.cpp:41:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i < sol.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 | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Caught fatal signal 8 | 10 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 10 |
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ă.