Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main(){
- int t; cin >> t;
- while(t--){
- int a[3], b[3], i;
- for(i = 0; i < 3; i++) cin >> a[i];
- for(i = 0; i < 3; i++) cin >> b[i];
- int score_a = 0, score_b = 0;
- for(i = 0; i < 3; i++){
- if(a[i] < b[i]) score_b++;
- else if(a[i] > b[i]) score_a++;
- }
- cout << score_a << ' ' << score_b << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement