#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 | #49067635 | Utilizator | |
Fișier | abc.cpp | Dimensiune | 1.40 KB |
Data încărcării | 14 Februarie 2024, 11:17 | Scor / rezultat | 0 puncte |
abc.cpp: In function 'int main()': abc.cpp:11:15: warning: the address of 'o' will always evaluate as 'true' [-Waddress] while(c1=!o) ^ abc.cpp:11:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] abc.cpp:5:46: warning: unused variable 'n' [-Wunused-variable] long long a,b,c,d,c1,i,j,k,p,r,t,t1,p1,m,n,v[100000],o[100]; ^ abc.cpp:5:44: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized] long long a,b,c,d,c1,i,j,k,p,r,t,t1,p1,m,n,v[100000],o[100]; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
11 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
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 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
17 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
18 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
19 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
20 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
21 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
22 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
23 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
24 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
25 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
Punctaj total | 0 |
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ă.