Question link = CodeChef: Practical coding for everyone
#define ll long long
#include <bits/stdc++.h>
using namespace std;
int main() {
ll t; cin>>t; while(t–){
ll n,r,s,x=0;
string a,b,c,d,e;
cin>>n>>a>>b>>r>>c>>d>>s>>e;
if(b=="CONTEST_WON")
x=x+300;
if(r<=20)
x=x+20-r;
if(c=="TOP_CONTRIBUTOR")
x=x+300;
if(d=="BUG_FOUND")
x=x+s;
if(e=="CONTEST_HOSTED")
x=x+50;
if(a=="INDIAN")
cout<<x/200<<endl;
else
cout<<x/400<<endl;
}
}
What is the problem with this code ? May be I am missing the logic.