Problem in Details:https://www.urionlinejudge.com.br/judge/en/problems/view/2006
Solution in C++:
Solution in C++:
#include <iostream>
using namespace std;
int main()
{
/* int a,b;
while(scanf("%d%d",&a,&b) != EOF){
int z=(8*60);
int c=(a*60)+b;
if(c>420 && c<480){
cout<<"Atraso maximo: "<<(c-420)<<endl;
}
else cout<<"Atraso maximo: "<<0<<endl;
}*/
int a;int sum=0;
cin>>a;
for(int i=1;i<=5;i++){
int b;
cin>>b;
if(a==b) sum=sum+1;
}
cout<<sum<<endl;
}
Comments
Post a Comment
Thanks for your message