Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4. int a[6];
  5. int b[6];
  6. for(int i=0;i<6;i++){
  7. cin >> a[i] >> b[i];
  8. }
  9. for(int i=1;i<6;i++){
  10. if(a[i]==6&&b[i]==1){
  11. cout << "No";
  12. return 0;
  13. }
  14. }
  15. if((a[0]==6)&&(b[0]!=1)){
  16. cout << "No" << endl;
  17. } else{
  18. cout << "Yes" << endl;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement