#2449
PM
Să se determine numărul de secvenţe PM care conţin x
semne plus şi y
semne minus.
Problema | PM | Operații I/O |
pm.in /pm.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 4 MB
/
Stivă 4 MB
|
Id soluție | #44655668 | Utilizator | |
Fișier | pm.cpp | Dimensiune | 4.02 KB |
Data încărcării | 16 Septembrie 2023, 21:20 | Scor / rezultat | 10 puncte |
pm.cpp: In member function 'myclass::bigInt myclass::bigInt::operator+(const myclass::bigInt&) const': pm.cpp:33:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(index < oth.digits.size() && index < digits.size()) { ^ pm.cpp:33:68: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(index < oth.digits.size() && index < digits.size()) { ^ pm.cpp:38:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(index < oth.digits.size()) { ^ pm.cpp:43:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(index < digits.size()) { ^ pm.cpp: In member function 'void myclass::bigInt::operator+=(const myclass::bigInt&)': pm.cpp:57:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(index < oth.digits.size() && index < digits.size()) { ^ pm.cpp:57:68: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(index < oth.digits.size() && index < digits.size()) { ^ pm.cpp:63:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(index < oth.digits.size()) { ^ pm.cpp:70:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(index < digits.size()) { ^ pm.cpp: In function 'int main()': pm.cpp:104:32: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d%d", &X, &Y); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0.028 secunde | Raspuns gresit. | 10 | 0 | ||
2 | 0 secunde | OK. | 5 | 5 | Exemplu | |
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 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.008 secunde | Raspuns gresit. | 10 | 0 | ||
10 | 0.016 secunde | Raspuns gresit. | 10 | 0 | ||
11 | 0 secunde | OK. | 5 | 5 | Exemplu | |
Punctaj total | 10 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PM 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ă.