What's the craziest thing you've ever done in your life?
I've traveled from Seoul to Haenam which is located in the most southern area of Korea by bicycle with my friends. We rode almost 80 km every day. On the first day of the journey, I felt really exhausted, and then I was used to it. Our plan was to go to Busan after Haenam and go up along the East sea. One of my friends got injured lightly before we arrived in Haenam, so we changed the plan. I wa..
Master 1000 Sentences/QOD
2018. 11. 14. 13:31
12015 가장 긴 증가하는 부분 수열 2
https://www.acmicpc.net/problem/12015 lower_bound를 이용해서 O(nlogn)만에 LIS를 만들 수 있다. 직접 예제들을 만들어서 동작 과정을 살펴보면 이해가 쉽다. 1234567891011121314151617181920#include #include #include using namespace std; int main(){ int n,m; scanf("%d",&n); vector l; l.push_back(-1); while(n--) { scanf("%d",&m); if(l.back()
Algorithm/BOJ
2018. 11. 14. 00:07