#453
Se citesc de la tastatură trei numere naturale. Să se determine numărul de valori distincte.
Problema | distincte1 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #30524088 | Utilizator | |
Fișier | distincte1.cpp | Dimensiune | 351 B |
Data încărcării | 18 August 2021, 16:04 | Scor / rezultat | 20 puncte |
distincte1.cpp: In function 'int main()': distincte1.cpp:8:9: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] if (a != b !=c) ^ distincte1.cpp:10:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (c = b and b !=c) ^ distincte1.cpp:12:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (a = b and b !=c) ^ distincte1.cpp:14:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (a = c and c !=b) ^ distincte1.cpp:16:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (a = b =c) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
2 | 0 secunde | OK. | 20 | 20 | ||
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 20 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema distincte1 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ă.