J-Log
Learning Diary

[백준 15552번] 빠른 A+B C++ 풀이 문제 본격적으로 for문 문제를 풀기 전에 주의해야 할 점이 있다. 입출력 방식이 느리면 여러 줄을 입력받거나 출력할 때 시간초과가 날 수 있다는 점이다. C++을 사용하고 있고 cin/cout을 사용하고자 한다면, cin.tie(NULL)과 sync_with_stdio(false)를 둘 다 적용해 주...

[백준 2562번] 최댓값 C++ 풀이 문제 9개의 서로 다른 자연수가 주어질 때, 이들 중 최댓값을 찾고 그 최댓값이 몇 번째 수인지를 구하는 프로그램을 작성하시오. 예를 들어, 서로 다른 9개의 자연수 3, 29, 38, 12, 57, 74, 40, 85, 61 이 주어지면, 이들 중 최댓값은 85이고, 이 값은 8번째 수이다. 입력 첫...

[백준 2753번] 윤년 C++ 풀이 문제 연도가 주어졌을 때, 윤년이면 1, 아니면 0을 출력하는 프로그램을 작성하시오. 윤년은 연도가 4의 배수이면서, 100의 배수가 아닐 때 또는 400의 배수일 때이다. 예를 들어, 2012년은 4의 배수이면서 100의 배수가 아니라서 윤년이다. 1900년은 100의 배수이고 400의 배수는 아니기 때문...

바킹독님의 실전알고리즘 배우기 1강 듣고 요약 바킹독의 실전 알고리즘 1강 링크 시간 복잡도 문제에 따른 허용 시간 복잡도 짐작하기 공간 복잡도 메모리의 크기가 512MB라면 1.2억개의 int 변수를 선언할 수 있다는 것 기억하기(int 1개가 4byte) 정수 자료형 char 자료형의 범위: -128~ 127(1byte=8bit) ...

3학년 1학기가 끝났다~ 어찌어찌 코로나로 혼란스러운 상황에서 3학년 1학기가 끝났다 졸업까지 남은 학기는 단 3학기.. 학기중엔 너무 바빠서(라고 쓰고 귀찮아서라고 읽는다) 블로그를 안했다 ㅇㅅㅇ.. 내가 뭔 블로그냐..싶다가도 다시 한번 시작해본다 교수님과 면담도 해보고 친구랑도 얘기해보고 결국에는 졸업 후 바로 IT기업에 취업하는 걸로 마...

#Set different background colors for each activity in Miwok. In order to get integer color from resource id, we need to use getColor method which is in the ContextCompat class. int textcolor = C...

How to put images for the word list in the Miwok app. -Put different resolution versions of same images into AndroidStudio. To put images into our app, we need different resolution version of sam...

Install kramdown and rouge gem install kramdown rouge Find available rouge syntax-highlighting style rougify help style Preview for various rouge styles https://spsarolkar.github.io/rouge-them...

Make custom ArrayAdapter using custom Word class and custom ArrayAdapter. -Create a custom ArrayAdapter By default, the ArrayAdapter class expects that it’ll be populating a single TextView. So ...

Make custom class to pass in to the ArrayAdapter constructor as a parameter. -Access modifier: public vs private public - we can access from anywhere. public class MainActivity { ~~~ textView...