#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 | #7656774 | Utilizator | |
Fișier | abc.cpp | Dimensiune | 2.66 KB |
Data încărcării | 25 Decembrie 2017, 17:58 | Scor / rezultat | 100 puncte |
abc.cpp: In function 'int rev(long long int)': abc.cpp:27:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ abc.cpp: In function 'int inmult(long long int*, long long int*, long long int*)': abc.cpp:31:9: warning: unused variable 'i' [-Wunused-variable] int i,j; ^ abc.cpp:31:11: warning: unused variable 'j' [-Wunused-variable] int i,j; ^ abc.cpp:64:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ abc.cpp: In function 'int cpy(long long int*, long long int*)': abc.cpp:70:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ abc.cpp: In function 'int pw(int, int)': abc.cpp:98:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ abc.cpp: In function 'int dv(int)': abc.cpp:116:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^
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 | OK. | 4 | 4 | ||
13 | 0 secunde | OK. | 4 | 4 | ||
14 | 0 secunde | OK. | 4 | 4 | ||
15 | 0.004 secunde | OK. | 4 | 4 | ||
16 | 0.012 secunde | OK. | 4 | 4 | ||
17 | 0.048 secunde | OK. | 4 | 4 | ||
18 | 0.068 secunde | OK. | 4 | 4 | ||
19 | 0.248 secunde | OK. | 4 | 4 | ||
20 | 0.284 secunde | OK. | 4 | 4 | ||
21 | 0.812 secunde | OK. | 4 | 4 | ||
22 | 0.612 secunde | OK. | 4 | 4 | ||
23 | 0.64 secunde | OK. | 4 | 4 | ||
24 | 0.748 secunde | OK. | 4 | 4 | ||
25 | 0.204 secunde | OK. | 4 | 4 | ||
Punctaj total | 100 |
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ă.