#4127
Dându-se cele N numere din șir să se determine:
ONI 2022, clasa a VI-a
| Problema | siruri4 | Operații I/O |
siruri.in/siruri.out
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64752227 | Utilizator | |
| Fișier | siruri4.cpp | Dimensiune | 2.48 KB |
| Data încărcării | 27 Mai 2026, 20:27 | Scor/rezultat | 25 puncte |
siruri4.cpp: In function ‘bool distincte(std::string)’: siruri4.cpp:11:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 11 | for(int i = 0; i < s.size(); i++) | ~~^~~~~~~~~~ siruri4.cpp:13:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 13 | for(int j = i + 1; j < s.size(); j++) | ~~^~~~~~~~~~ siruri4.cpp: In function ‘std::string transforma(std::string)’: siruri4.cpp:27:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 27 | for(int i = 0; i < s.size(); i++) | ~~^~~~~~~~~~ siruri4.cpp:31:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 31 | for(int j = 0; j < rez.size(); j++) | ~~^~~~~~~~~~~~ siruri4.cpp: In function ‘int main()’: siruri4.cpp:130:28: warning: comparison of integer expressions of different signedness: ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 130 | if(v[i].size() > maxim) | ~~~~~~~~~~~~^~~~~~~ siruri4.cpp:138:28: warning: comparison of integer expressions of different signedness: ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 138 | if(v[i].size() == maxim) | ~~~~~~~~~~~~^~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.006 secunde | OK. | 3 | 3 | ||
| 2 | 0.01 secunde | OK. | 3 | 3 | ||
| 3 | 0.007 secunde | OK. | 3 | 3 | ||
| 4 | 0.007 secunde | OK. | 3 | 3 | ||
| 5 | 0.01 secunde | OK. | 3 | 3 | ||
| 6 | 0.019 secunde | OK. | 3 | 3 | ||
| 7 | 0.007 secunde | Raspuns gresit. | 4 | 0 | ||
| 8 | 0.007 secunde | OK. | 4 | 4 | ||
| 9 | 0.011 secunde | Raspuns gresit. | 4 | 0 | ||
| 10 | 0.01 secunde | Raspuns gresit. | 4 | 0 | ||
| 11 | 0.021 secunde | Raspuns gresit. | 4 | 0 | ||
| 12 | 0.023 secunde | Raspuns gresit. | 4 | 0 | ||
| 13 | 0.027 secunde | Raspuns gresit. | 4 | 0 | ||
| 14 | 0.025 secunde | Raspuns gresit. | 4 | 0 | ||
| 15 | 0.023 secunde | Raspuns gresit. | 4 | 0 | ||
| 16 | 0.02 secunde | Raspuns gresit. | 4 | 0 | ||
| 17 | 0.006 secunde | Raspuns gresit. | 3 | 0 | ||
| 18 | 0.006 secunde | OK. | 3 | 3 | ||
| 19 | 0.009 secunde | Raspuns gresit. | 3 | 0 | ||
| 20 | 0.009 secunde | Raspuns gresit. | 3 | 0 | ||
| 21 | 0.011 secunde | Raspuns gresit. | 3 | 0 | ||
| 22 | 0.011 secunde | Raspuns gresit. | 3 | 0 | ||
| 23 | 0.013 secunde | Raspuns gresit. | 3 | 0 | ||
| 24 | 0.013 secunde | Raspuns gresit. | 3 | 0 | ||
| 25 | 0.016 secunde | Raspuns gresit. | 3 | 0 | ||
| 26 | 0.015 secunde | Raspuns gresit. | 3 | 0 | ||
| 27 | 0.018 secunde | Raspuns gresit. | 3 | 0 | ||
| 28 | 0.026 secunde | Raspuns gresit. | 3 | 0 | ||
| 29 | 0.023 secunde | Raspuns gresit. | 3 | 0 | ||
| 30 | 0.023 secunde | Raspuns gresit. | 3 | 0 | ||
| Punctaj total | 25 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema siruri4 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ă.