// 치킨댄스를 추는 곰곰이를 본 임스 2
package Bronze_IV_4;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Ex26068 {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int x;
int cnt = 0;
int n = Integer.parseInt(br.readLine());
for (int i = 0; i < n; i++) {
x = Integer.parseInt(br.readLine().replace("D-", ""));
if (x <= 90) {
cnt++;
}
}
System.out.println(cnt);
}
}'백준 풀이 > 자바(Java)' 카테고리의 다른 글
| 백준 3034 자바 - 앵그리 창영 (1) | 2024.01.15 |
|---|---|
| 백준 16017 자바 - Telemarketer or not? (0) | 2024.01.14 |
| 백준 27110 자바 - 특식 배부 (0) | 2024.01.12 |
| 백준 4344 자바 - 평균은 넘겠지 (1) | 2024.01.11 |
| 백준 1712 자바 - 손익분기점 (0) | 2024.01.10 |