My issue
My code
#include <iostream>
using namespace std;
int main() {
int t;
cin>>t;
while(t--){
string s;
cin>>s;
int n=s.length();
if(s[n-1]=='1'){
cout<<"win"<<endl;
}
else{
cout<<"lose"<<endl;
}
}
return 0;
}
Problem Link: TTENIS Problem - CodeChef