#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 | #48170416 | Utilizator | |
Fișier | distincte1.cpp | Dimensiune | 404 B |
Data încărcării | 17 Ianuarie 2024, 15:03 | Scor / rezultat | 100 puncte |
distincte1.cpp: In function 'int main()': distincte1.cpp:9:10: warning: left operand of comma operator has no effect [-Wunused-value] if (a!=b,b!=c,a!=c) ^ distincte1.cpp:9:15: warning: right operand of comma operator has no effect [-Wunused-value] if (a!=b,b!=c,a!=c) ^ distincte1.cpp:13:15: warning: left operand of comma operator has no effect [-Wunused-value] else if (a==b, b==c) ^ distincte1.cpp:17:15: warning: left operand of comma operator has no effect [-Wunused-value] else if (a!=b, b=c) ^ distincte1.cpp:21:15: warning: left operand of comma operator has no effect [-Wunused-value] else if (a!=c, c=b) ^ distincte1.cpp:25:15: warning: left operand of comma operator has no effect [-Wunused-value] else if (b!=c, a=c) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | ||
2 | 0 secunde | OK. | 20 | 20 | ||
3 | 0 secunde | OK. | 20 | 20 | ||
4 | 0 secunde | OK. | 20 | 20 | ||
5 | 0 secunde | OK. | 20 | 20 | ||
Punctaj total | 100 |
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ă.