VioletaBabel

10807번: 개수 세기 본문

백준/백준-C++
10807번: 개수 세기
Beabletoet 2017. 6. 6. 00:29

#include<cstdio>

#include<set>

using namespace std;

int main()

{

multiset<int> num;

int n, a;

scanf("%d", &n);

while (n--)

{

scanf("%d", &a);

num.insert(a);

}

scanf("%d", &a);

printf("%d", num.count(a));

}

'백준 > 백준-C++' 카테고리의 다른 글

10811번: 바구니 뒤집기  (0) 2017.06.06
10808번: 알파벳 개수  (0) 2017.06.06
10821번: 정수의 개수  (0) 2017.06.06
10820번: 문자열 분석  (0) 2017.06.06
12813번: 이진수 연산  (0) 2017.06.06
Comments