#1308
CifreComune
Se citesc două numere naturale n m
cu exact două cifre fiecare. Să se decidă dacă cele două numere au cifre comune.
Problema | CifreComune | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50656901 | Utilizator | |
Fișier | cifrecomune.cpp | Dimensiune | 569 B |
Data încărcării | 18 Aprilie 2024, 20:07 | Scor / rezultat | 0 puncte |
cifrecomune.cpp: In function 'int main()': cifrecomune.cpp:28:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(a=!c) ^ cifrecomune.cpp:29:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(a=!d) ^ cifrecomune.cpp:30:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(b=!a) ^ cifrecomune.cpp:31:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(b=!c) ^ cifrecomune.cpp:32:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(b=!d) ^ cifrecomune.cpp:33:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(c=!a) ^ cifrecomune.cpp:34:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(c=!b) ^ cifrecomune.cpp:35:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(c=!d) ^ cifrecomune.cpp:36:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(d=!a) ^ cifrecomune.cpp:37:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(d=!b) ^ cifrecomune.cpp:38:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(d=!c) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema CifreComune 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ă.