#3967
Logic1
Scrieţi un program care determină dacă două expresii logice sunt echivalente sau nu.
ONI 2006, Clasa a X-a
Problema | Logic1 | Operații I/O |
logic.in /logic.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 8 MB
/
Stivă 2 MB
|
Id soluție | #49369443 | Utilizator | |
Fișier | logic1.cpp | Dimensiune | 2.91 KB |
Data încărcării | 27 Februarie 2024, 22:37 | Scor / rezultat | 50 puncte |
logic1.cpp: In function 'bool And1()': logic1.cpp:41:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(p1 < s1.size() && s1[p1]=='&') ^ logic1.cpp: In function 'bool Xor1()': logic1.cpp:51:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(p1 < s1.size() && s1[p1]=='^') ^ logic1.cpp: In function 'bool e1()': logic1.cpp:61:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(p1 < s1.size() && s1[p1]=='|') ^ logic1.cpp: In function 'bool And2()': logic1.cpp:93:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(p2 < s2.size() && s2[p2]=='&') ^ logic1.cpp: In function 'bool Xor2()': logic1.cpp:103:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(p2 < s2.size() && s2[p2]=='^') ^ logic1.cpp: In function 'bool e2()': logic1.cpp:113:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(p2 < s2.size() && s2[p2]=='|') ^ logic1.cpp: In function 'int main()': logic1.cpp:167:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<v.size();i++) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | OK. | 10 | 10 | ||
1 | 0 secunde | OK. | 10 | 10 | ||
2 | 0 secunde | OK. | 10 | 10 | ||
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0.004 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | OK. | 10 | 10 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | OK. | 10 | 10 | ||
Punctaj total | 50 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Logic1 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ă.