https://www.acmicpc.net/problem/10797
#include <iostream> using namespace std; int main() { int n; cin>>n; int count=0; for(int i=0;i<5;i++){ int a; cin>>a; if(n==a) count++; } cout<<count; }