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
                            
                        
                          
                          - 머신러닝
 - hm3d
 - 딥러닝
 - AlexNet
 - r-cnn
 - machine learning
 - real-time object detection
 - MySQL
 - CNN
 - Python
 - image processing
 - C++
 - Reinforcement Learning
 - 그래프 이론
 - LSTM
 - Mask Processing
 - YoLO
 - eecs 498
 - 백준
 - opencv
 - BFS
 - hm3dsem
 - dfs
 - 강화학습
 - deep learning
 - dynamic programming
 - DP
 - NLP
 - two-stage detector
 - ubuntu
 
                            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