// MBTI
package Bronze_IV_4;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Ex25640 {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String jinho = br.readLine();
int n = Integer.parseInt(br.readLine());
int cnt = 0;
for (int i = 0; i < n; i++) {
String mbti = br.readLine();
if (jinho.equals(mbti)) {
cnt++;
}
}
System.out.println(cnt);
}
}
'백준 풀이 > 자바(Java)' 카테고리의 다른 글
백준 1292 자바 - 쉽게 푸는 문제 (1) | 2023.10.28 |
---|---|
백준 3460 자바 - 이진수 (0) | 2023.10.27 |
백준 28352 자바 - 10! (0) | 2023.10.25 |
백준 15059 자바 - Hard choice (0) | 2023.10.24 |
백준 25191 자바 - 치킨댄스를 추는 곰곰이를 본 임스 (0) | 2023.10.23 |