전체 글(334)
-
[VM] Guest CD 설치
복사 붙여 넣기가 되지 않아, 찾아보니 guest cd를 삽입해야 한다고 한다. 따라서, 기존에 있는 cd를 vm 앱에서 꺼낸다음, vm을 run 한다. 이후, guest cd 설치를 진행한다. 출처 : https://velog.io/@dksek3050/Ubuntu-%EC%9A%B0%EB%B6%84%ED%88%AC-%EC%9C%88%EB%8F%84%EC%9A%B0-%ED%81%B4%EB%A6%BD%EB%B3%B4%EB%93%9C-%EA%B3%B5%EC%9C%A0-%EC%95%88%EB%90%A8-%EB%AC%B8%EC%A0%9C-VirtualBox-%EA%B0%80%EC%83%81-%EA%B4%91-%EB%94%94%EC%8A%A4%ED%81%AC-%EC%82%BD%EC%9E%85-%EB%AC%B8%E..
2024.11.08 -
[Project1] Binary_classification_of_E.coli
0. 서론 사진을 input으로 넣었을 때, E.coli 사진인지 구분하는 binary_classification model을 만들어보려 한다. 따라서, 준비해야하는 것은 E.coli 사진과 E.coli가 아닌 사진이 필요하다. 내가 이번에 모은 사진은 E.coli 50장 , non_E.coli 50장이다. 모으는 방법은 google image에서 수작업으로 진행했다. 다음번 프로젝트에서는 웹 크롤링을 이용해서 모아보려 한다. 모은 사진은 아래와 같이 폴더 구조를 만들자. dataset/ ├── E_coli/ │ ├── image1.jpg │ ├── image2.jpg │ └── ... └── Non_E_coli/ ├── image1.jpg ├── image2.jpg └..
2024.10.31 -
[BOJ] 1920번 : 수 찾기
1. problem : https://www.acmicpc.net/problem/1920 2. solution 1 :#include using namespace std;int N, M; vector v1; vector v2; bool find_num(int& a) { int left = 0; int right = N-1; while (left > N; for (int i = 0; i > x; v1.push_back(x); } sort(v1.begin(), v1.end()); cin >> M; for (int i = 0; i > x; v2.push_back(x); } for (int i = 0; i binary search를 이용해 답을 도출했다. binary search를 하기 위해서는 ..
2024.10.31 -
[BOJ] 1038번 : 감소하는 수
1. problem : https://www.acmicpc.net/problem/1038 2. solution 1 :#include using namespace std;vector v(10, 0);int main(void) { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; int cnt = 0; for (int i = 1; i source code 출처 : https://github.com/encrypted-def/basic-algo-lecture/blob/master/0x12/solutions/1038.cpp basic-algo-lecture/0x12/solutions/1038.cpp at master · encrypted-def/basic-algo..
2024.10.11 -
[BOJ] 1011번 : Fly me to the Alpha Centauri
1. problem : https://www.acmicpc.net/problem/1011 2. solution 1 :#include using namespace std;long long func(long long a) { return (2 * sqrt(a) - 1e-9);}int main(void) { ios::sync_with_stdio(0); cin.tie(0); int t; long long x, y; cin >> t; while (t--) { cin >> x >> y; cout source code 출처 : https://github.com/encrypted-def/basic-algo-lecture/blob/master/0x12/solutions/1011.cpp basic-algo-lec..
2024.10.10 -
[BOJ] 2482번 : 색상환
1. problem : https://www.acmicpc.net/problem/2482 2. solution 1 :#include using namespace std;int n, k; const int val = 1004;const int mod = 1e9 + 3;int d[val][val]; int main(void) { ios::sync_with_stdio(0); cin.tie(0); cin >> n >> k; if (k == 1) { cout source code 참고 : https://akim9905.tistory.com/71 [백준] 2482번 색상환[적용한 알고리즘] DP [아이디어] 1번과 N번이 둘 다 색칠되는 경우를 제외하고는, 나머지 경우는 선형으로 생각해줘도 된다. dp[N]..
2024.10.08