일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- mysql
- 알고리즘
- Iterator
- 노선별 평균 역 사이 거리 조회하기
- 백준
- MAC OS
- 깃허브
- Eclipse
- HashMap
- 안드로이드 스튜디오
- 문자열 숫자 변환
- github
- 27866
- 코딩테스트
- Android Studio
- OAuth 인증
- sort정렬
- 핸드폰 가리기
- 자바
- 맥북
- 가격이 제일 비싼 식품의 정보 출력하기
- SQL코딩테스트
- 해시
- 프로그램서
- 포맷 지정자
- homebrew
- M1
- JDK
- 프로그래머스
- Java
Archives
- Today
- Total
목록10871번 (1)
개발일지

#10807번: 개수 세기 문제 풀이 import java.util.Scanner; public class Main_10807 { public static void main(String[] args) { Scanner in = new Scanner(System.in); int N = in.nextInt();// N개의 정수 int[] arr = new int[N]; for ( int i = 0; i < N; i++) { int a = in.nextInt(); arr[i] = a; } int V = in.nextInt();// 찾을 정수 int cnt = 0;// 같은 정수의 개수 for ( int j = 0; j < N; j++) { if ( arr[j] == V) { cnt++; } } in.close..
Java/알고리즘 공부
2023. 1. 31. 16:22