Skip to content

Commit

Permalink
Weekly Pull Request - 김수정 (#350)
Browse files Browse the repository at this point in the history
* feat(Soojung-Kim) : [BOJ, 2577] 숫자의 개수

* feat(Soojung-Kim) : [BOJ, 15552] 빠른 A+B

* feat(Soojung-Kim) : [BOJ, 2741] N 찍기

* feat(Soojung-Kim) : [BOJ, 10039] 평균점수

* feat(Soojung-Kim) : [BOJ, 10430] 나머지

* feat(Soojung-Kim) : [BOJ, 13277] 큰 수 곱셈

* feat(Soojung-Kim) : 계정 변경 커밋 테스트

* feat(Soojung-Kim) : 계정 변경 푸시 테스트

* feat(Soojung-Kim) : 인증 커밋 테스트

* feat(Soojung-Kim) : [BOJ, 2953] 요리사

* feat(Soojung-Kim) : [BOJ, 10951] A+B - 4

* feat(Soojung-Kim) : [BOJ, 2440] 별 찍기 - 3

* feat(Soojung-Kim) : [BOJ, 4344] 평균은 넘겠지

* feat(Soojung-Kim) : [BOJ, 11720] 숫자의 합

* feat(Soojung-Kim) : [BOJ, 1152] 단어의 개수

* feat(Soojung-Kim) : [BOJ, 2445] 별 찍기 - 8

* feat(Soojung-Kim) : [BOJ, 9610] 사분면

* feat(Soojung-Kim) : [BOJ, 1076] 저항

* feat(Soojung-Kim) : [BOJ, 18883] N M 찍기

* feat(Soojung-Kim) : [BOJ, 1009] 분산처리

* feat(Soojung-Kim) : [BOJ, 15596] 정수 N개의 합

* feat(Soojung-Kim) : [BOJ, 10996] 별 찍기 - 21

* feat(Soojung-Kim) : [BOJ, 6996] 애너그램

* feat(Soojung-Kim) : [BOJ, 2525] 오븐 시계

* feat(Soojung-Kim) : [BOJ, 10871] X보다 작은 수

Co-authored-by: Soojung Kim <soojung.kim@bespinglobal.com>
  • Loading branch information
hailey21 and hailey21 committed Jul 10, 2021
1 parent bbc43fd commit c62b9b8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Soojung-Kim/baekjoon/BOJ_10871.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package baekjoon;

import java.util.Scanner;
import java.util.StringTokenizer;

public class BOJ_10871 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);

String str = scanner.nextLine();

StringTokenizer st = new StringTokenizer(str, " ");
int n = Integer.parseInt(st.nextToken());
int greaterThen = Integer.parseInt(st.nextToken());

String str2 = scanner.nextLine();
st = new StringTokenizer(str2, " ");

StringBuilder sb = new StringBuilder();

for (int i = 0; i < n; i++) {
int tmp = Integer.parseInt(st.nextToken());
if (greaterThen > tmp) {
sb.append(tmp);
sb.append(" ");
}
}

System.out.println(sb);
}
}

0 comments on commit c62b9b8

Please sign in to comment.