#2271
Se dă un șir cu n numere întregi. Determinați cel mai mare număr care poate fi scris ca produs de două elemente ale șirului.
| Problema | ProdMax1 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64795790 | Utilizator | |
| Fișier | prodmax1.c | Dimensiune | 526 B |
| Data încărcării | 01 Iunie 2026, 22:04 | Scor/rezultat | 60 puncte |
prodmax1.c: In function ‘main’: prodmax1.c:24:5: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 24 | scanf("%d",&n); | ^~~~~ prodmax1.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | int n; prodmax1.c:24:5: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 24 | scanf("%d",&n); | ^~~~~ prodmax1.c:24:5: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ prodmax1.c:32:9: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 32 | printf("%d",p1); | ^~~~~~ prodmax1.c:32:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ prodmax1.c:32:9: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] prodmax1.c:32:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ prodmax1.c:34:9: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] 34 | printf("%d",p2); | ^~~~~~ prodmax1.c:34:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0.001 secunde | OK. | 20 | 20 | ||
| 3 | 0.001 secunde | OK. | 10 | 10 | ||
| 4 | Depășit | Limita de timp depășită | 10 | 0 | ||
| 5 | 0.001 secunde | OK. | 10 | 10 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.001 secunde | Caught fatal signal 11 | 10 | 0 | ||
| 8 | 0.001 secunde | Caught fatal signal 11 | 10 | 0 | ||
| Punctaj total | 60 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ProdMax1 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ă.