#2392
Se dau două numere, unul mare și unul mic, ambele pozitive. Calculați suma lor.
| Problema | SumaXL | Operații I/O |
sumaxl.in/sumaxl.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #63827136 | Utilizator | |
| Fișier | sumaxl.cpp | Dimensiune | 4.87 KB |
| Data încărcării | 20 Martie 2026, 11:35 | Scor/rezultat | 100 puncte |
sumaxl.cpp: In member function 'bool bigint::operator<(const bigint&) const': sumaxl.cpp:73:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0;i<X.size();i++) ^ sumaxl.cpp: In function 'bigint operator-(const bigint&, const bigint&)': sumaxl.cpp:99:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0;i<B.X.size();i++) ^ sumaxl.cpp:111:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = B.X.size();i<A.X.size();i++) ^ sumaxl.cpp: In function 'bigint operator+(const bigint&, const bigint&)': sumaxl.cpp:148:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0;i<B.X.size();i++) ^ sumaxl.cpp:157:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = B.X.size();i<A.X.size();i++) ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0 secunde | OK. | 20 | 20 | ||
| 3 | 0 secunde | OK. | 20 | 20 | ||
| 4 | 0 secunde | OK. | 20 | 20 | ||
| 5 | 0 secunde | OK. | 20 | 20 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SumaXL 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ă.