cpp

bbjx5 2024-11-24 19:53:11 2024-11-24 19:53:45 2

``cpp #include<bits/stdc++.h> using namespace std; struct nide{ string shool; string team; int solved; int time; }a[20010]; int main() { int n; cin>>n; int sum=0; for(int i=1;i<=n;i++) { cin>>a[i].shool>>a[i].solved>>a[i].team>>a[i].time; if(a[i].team[a[i].team.size()-1]!='*') sum++; } double j=sum%(1/10); double y=sum%(3/10); double t=sum%(6/10); string s2; cin>>s2; if(s2=="gold") { cout<<j<<endl;

}
if(s2=="silver")
{
	cout<<y<<endl;
	
}
if(s2=="bronze")
{
	cout<<t<<endl;
	
}

return 0;

}

{{ vote && vote.total.up }}