Advertisement
hkshakib

Untitled

Feb 8th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2.  
  3. using namespace std;
  4. int main()
  5. {
  6. int arr1[3],arr2[3];
  7. for(int i=0;i<3;i++)
  8. {
  9. cin>>arr1[i];
  10. }
  11. for(int i=0;i<3;i++)
  12. {
  13. cin>>arr2[i];
  14. }
  15. int alice=0,bob=0;
  16. for(int i=0;i<3;i++)
  17. {
  18. if(arr1[i]>arr2[i])
  19. alice++;
  20. if(arr1[i]<arr2[i])
  21. bob++;
  22. }
  23. cout<<alice<<" "<<bob<<endl;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement