#include <iostream>
using namespace std;
int main()
{
int a[100],b[100],t;
cin>>t;
for(int i=1;i<=t;i++)
{
cin>>a[i]>>b[i];
}
for(int i=1;i<=t;i++)
{
if(a[i]>b[i])
cout<<"Participant 1 wins"<<'\n';
else
cout<<"Participant 2 wins"<<'\n';
}
return 0;
}
using namespace std;
int main()
{
int a[100],b[100],t;
cin>>t;
for(int i=1;i<=t;i++)
{
cin>>a[i]>>b[i];
}
for(int i=1;i<=t;i++)
{
if(a[i]>b[i])
cout<<"Participant 1 wins"<<'\n';
else
cout<<"Participant 2 wins"<<'\n';
}
return 0;
}
No comments:
Post a Comment