Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main() {
- ios::sync_with_stdio(false);
- int t;
- cin >> t;
- while (t --){
- int barca, real, mal, eib;
- for (int i = 0; i < 4; i++){
- int x;
- string s;
- cin >> s >> x;
- if (s == "Barcelona") barca = x;
- if (s == "RealMadrid") real = x;
- if (s == "Malaga") mal = x;
- if (s == "Eibar") eib = x;
- }
- if (barca > eib and real < mal) cout << "Barcelona\n";
- else cout << "RealMadrid\n";
- }
- }
Add Comment
Please, Sign In to add comment