#include<bits/stdc++.h> using namespace std; int arr[20],mah=0; int brr[20],mb=0; int main(){ for(int i=1;i<=10;i++){ cin>>arr[i]; } for(int i=1;i<=10;i++){ cin>>brr[i]; } int ma=0,mb=0,ab=0; for(int i=1;i<=10;i++){ if(arr[i]>brr[i]){ ma++; } else if(arr[i]<brr[i]){ mb++; } else if(arr[i]brr[i]){ ab++; } } cout<<ma<<" "<<ab<<" "<<mb<<endl; if(ma<mb){ cout<<"a<b"; } if(ma>mb){ cout<<"a>b"; } if(mamb){ cout<<"a=b"; } return 0; }

3 comments

  • 1