This is comment for paste
Логические операции «и», «или», «не»
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- string Color[4];
- int N[4];
- int i;
- cin >> Color[0] >> N[0];
- cin >> Color[1] >> N[1];
- cin >> Color[2] >> N[2];
- cin >> Color[3] >> N[3];
- for (i=0; i<=2; i++) {
- if (((N[i]==N[3])||(N[3]<0)) && ((Color[i]==Color[3])||(Color[3]=="?"s)))
- cout << i+1 << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment