#2319
abc
Se dau două numere naturale nenule a
şi b
, iar produsul lor îl notăm cu c
. Aflaţi cel mai mare divizor propriu al lui A=2
c
-1
.
Problema | abc | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 1.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #12828346 | Utilizator | |
Fișier | abc.cpp | Dimensiune | 2.65 KB |
Data încărcării | 15 Decembrie 2018, 00:07 | Scor / rezultat | 44 puncte |
abc.cpp: In function 'NrMare operator*(NrMare, NrMare)': abc.cpp:80:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < a.size(); i++) { ^ abc.cpp:81:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < b.size(); j++) { ^ abc.cpp:86:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < rez.size(); i++) { ^ abc.cpp: In function 'std::ostream& operator<<(std::ostream&, const NrMare&)': abc.cpp:67:33: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized] for(int i = nrcf(x[i]); i <= NRCF; i++) { ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 4 | 4 | ||
2 | 0 secunde | OK. | 4 | 4 | ||
3 | 0 secunde | OK. | 4 | 4 | ||
4 | 0 secunde | OK. | 4 | 4 | ||
5 | 0 secunde | OK. | 4 | 4 | ||
6 | 0 secunde | OK. | 4 | 4 | ||
7 | 0 secunde | OK. | 4 | 4 | ||
8 | 0 secunde | OK. | 4 | 4 | ||
9 | 0 secunde | OK. | 4 | 4 | ||
10 | 0 secunde | OK. | 4 | 4 | ||
11 | 0 secunde | OK. | 4 | 4 | ||
12 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
13 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
14 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
15 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
16 | Depășit | Limita de timp depășită | 4 | 0 | ||
17 | Depășit | Limita de timp depășită | 4 | 0 | ||
18 | 0.008 secunde | Raspuns gresit. | 4 | 0 | ||
19 | Depășit | Limita de timp depășită | 4 | 0 | ||
20 | 0.36 secunde | Raspuns gresit. | 4 | 0 | ||
21 | 0.076 secunde | Raspuns gresit. | 4 | 0 | ||
22 | 0.036 secunde | Raspuns gresit. | 4 | 0 | ||
23 | 0.04 secunde | Raspuns gresit. | 4 | 0 | ||
24 | 0.064 secunde | Raspuns gresit. | 4 | 0 | ||
25 | 0.02 secunde | Raspuns gresit. | 4 | 0 | ||
Punctaj total | 44 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema abc 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ă.