#1922
Se dau numerele naturale N și X. Aflați dacă N este divizibil cu 2X și dacă N este divizibil cu 5X.
| Problema | Nmod25 | Operații I/O |
nmod25.in/nmod25.out
|
|---|---|---|---|
| Limita timp | 0.01 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64699142 | Utilizator | |
| Fișier | nmod25.cpp | Dimensiune | 9.95 KB |
| Data încărcării | 24 Mai 2026, 18:11 | Scor/rezultat | 75 puncte |
nmod25.cpp: In member function ‘big_int::operator std::string() const’: nmod25.cpp:53:13: warning: unused variable ‘i’ [-Wunused-variable] 53 | int i; | ^ nmod25.cpp: In member function ‘big_int big_int::operator+(const big_int&) const’: nmod25.cpp:147:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const long unsigned int’ [-Wsign-compare] 147 | for(i=0;i<min(digits.size(),b.digits.size());i++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nmod25.cpp:153:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 153 | for (; i < digits.size(); i++) | ~~^~~~~~~~~~~~~~~ nmod25.cpp:159:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 159 | for (; i < b.digits.size(); i++) | ~~^~~~~~~~~~~~~~~~~ nmod25.cpp: In member function ‘big_int big_int::operator-(const big_int&) const’: nmod25.cpp:191:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const long unsigned int’ [-Wsign-compare] 191 | for(i=0;i<min(digits.size(),b.digits.size());i++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nmod25.cpp:205:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 205 | for (; i < digits.size(); i++) | ~~^~~~~~~~~~~~~~~ nmod25.cpp: In member function ‘big_int big_int::operator*(const big_int&) const’: nmod25.cpp:230:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 230 | for(i=0;i<digits.size();i++) | ~^~~~~~~~~~~~~~ nmod25.cpp:233:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 233 | for(j=0;j<b.digits.size();j++) | ~^~~~~~~~~~~~~~~~ nmod25.cpp: In member function ‘big_int big_int::operator/(const big_int&) const’: nmod25.cpp:281:13: warning: statement has no effect [-Wunused-value] 281 | for(i;i>=-1;i--) | ^ nmod25.cpp: In member function ‘big_int big_int::operator-(const big_int&) const’: nmod25.cpp:218:5: warning: control reaches end of non-void function [-Wreturn-type] 218 | } | ^ nmod25.cpp: In member function ‘big_int big_int::operator+(const big_int&) const’: nmod25.cpp:172:5: warning: control reaches end of non-void function [-Wreturn-type] 172 | } | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.003 secunde | OK. | 15 | 15 | Exemplu | |
| 2 | 0.002 secunde | OK. | 20 | 20 | ||
| 3 | Depășit | Limita de timp depășită | 25 | 0 | ||
| 4 | 0.002 secunde | OK. | 20 | 20 | ||
| 5 | 0.001 secunde | OK. | 20 | 20 | ||
| Punctaj total | 75 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Nmod25 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ă.