Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- AlexNet
- 강화학습
- machine learning
- image processing
- BFS
- Python
- deep learning
- 머신러닝
- YoLO
- opencv
- Mask Processing
- 딥러닝
- 백준
- Reinforcement Learning
- hm3dsem
- ubuntu
- 그래프 이론
- hm3d
- dynamic programming
- DP
- LSTM
- real-time object detection
- two-stage detector
- eecs 498
- CNN
- MySQL
- r-cnn
- dfs
- C++
- NLP
Archives
- Today
- Total
목록수 찾기 (1)
JINWOOJUNG

접근법 Array를 이용한 BST를 만들어서 접근하려고 했지만, 너무 과하고 시간이 문제여서 Binary Search를 유사하게 구현해서 접근하기로 하였다. 정답 import sys import math N = int(input()) inputs = list(map(int,sys.stdin.readline().split(" "))) inputs.sort() M = int(input()) array = list(map(int,sys.stdin.readline().split(" "))) for i in range(0,M): L = 0 R = N-1 flag = False while L inputs[mid]): L = mid if(array[i] > inputs[R]):break else: R = mid-1 ..
백준
2023. 12. 25. 16:04