MahmudulMaruf

Code · Faith · Curiosity

Blog Post

Beecrowd: 2006 - Identifying Tea

cpp �� 2022-07-16 11:58:14

cpp

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n, a, b, c, d, e, sum=0;
    cin>n;
    cin>>a>>b>>c>>d>>e;
    if(n==a)
    {
        sum+=1;
    }
    if(n==b)
    {
        sum+=1;
    }
    if(n==c)
    {
        sum+=1;
    }
    if(n==d)
    {
        sum+=1;
    }
    if(n==e)
    {
        sum+=1;
    }
    cout<<sum<<endl;
    return 0;
}
 

Post Visited: 78 times

Categories: cpp

0 Comments

    No comments yet. Be the first to comment!

Leave a comment

Captcha