#3103
Se dă o matrice patratică de latură n. Să se determine CMMDC:
| Problema | MatGCD_rec | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 64 MB
|
| Id soluție | #64646312 | Utilizator | |
| Fișier | matgcd_rec.cpp | Dimensiune | 541 B |
| Data încărcării | 20 Mai 2026, 11:41 | Scor/rezultat | 1 puncte |
matgcd_rec.cpp: In function ‘int cmmdc(int, int)’: matgcd_rec.cpp:5:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 5 | if(b==0) | ^~ matgcd_rec.cpp:7:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 7 | return cmmdc(a,a%b);} | ^~~~~~ matgcd_rec.cpp: In function ‘int main()’: matgcd_rec.cpp:15:10: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 15 | if(i==j) | ^~ matgcd_rec.cpp:17:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 17 | if(i+j==n-1) | ^~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | 1:Incorect 2:Incorect 3:Incorect | 4 | 0 | ||
| 2 | 0.001 secunde | 1:Incorect 2:Incorect 3:Incorect | 4 | 0 | Exemplu | |
| 3 | 0.001 secunde | 1:Incorect 2:Incorect 3:Incorect | 4 | 0 | ||
| 4 | 0.001 secunde | 1:Incorect 2:Incorect 3:Incorect | 4 | 0 | ||
| 5 | 0.001 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 6 | 0.001 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 7 | 0.001 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 8 | 0.001 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 9 | 0.001 secunde | 1:Corect 2:Incorect 3:Incorect | 3 | 1 | ||
| 10 | 0.064 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 11 | 0.048 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 12 | 0.044 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 13 | 0.045 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 14 | 0.027 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 15 | 0.053 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 16 | 0.055 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 17 | 0.083 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 18 | 0.076 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 19 | 0.073 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 20 | 0.07 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 21 | Depășit | Limita de timp depășită | 3 | 0 | ||
| 22 | 0.081 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 23 | Depășit | Limita de timp depășită | 3 | 0 | ||
| 24 | 0.033 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 25 | Depășit | Limita de timp depășită | 3 | 0 | ||
| 26 | Depășit | Limita de timp depășită | 3 | 0 | ||
| 27 | Depășit | Limita de timp depășită | 3 | 0 | ||
| 28 | Depășit | Limita de timp depășită | 3 | 0 | ||
| 29 | 0.052 secunde | 1:Incorect 2:Incorect 3:Incorect | 3 | 0 | ||
| 30 | Depășit | Limita de timp depășită | 3 | 0 | ||
| 31 | Depășit | Limita de timp depășită | 3 | 0 | ||
| 32 | Depășit | Limita de timp depășită | 3 | 0 | ||
| Punctaj total | 1 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema MatGCD_rec 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ă.