#106
Să se scrie un program care determină minimul a trei numere întregi.
| Problema | minim3 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #56440701 | Utilizator | |
| Fișier | minim3.c | Dimensiune | 226 B |
| Data încărcării | 19 Februarie 2025, 13:58 | Scor/rezultat | 50 puncte |
minim3.c: In function 'main': minim3.c:7:6: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (a>b>c) ^ minim3.c:9:6: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (a<b>c) ^ minim3.c:11:6: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (a>b<c) ^ minim3.c:6:7: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d%d", &a, &b, &c); ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0 secunde | OK. | 10 | 10 | ||
| 6 | 0 secunde | OK. | 10 | 10 | ||
| 7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0 secunde | OK. | 10 | 10 | ||
| 9 | 0 secunde | OK. | 5 | 5 | ||
| 10 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 11 | 0 secunde | OK. | 5 | 5 | ||
| 12 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| Punctaj total | 50 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema minim3 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ă.