분류 전체보기
-
[코테 준비] reminders공부/etc 2023. 10. 7. 14:59
cmp 함수 만들때는, 문제에 있는 모든 조건을 활용하여 만들기!!!! 특히 대소 비교할때 주의. 모든 경우를 고려할 것 // 구조체 형식 struct square { int r, c, len; // 위 꼭짓점(r,c), 한 변 길이: len }; // cmp 함수 bool cmp(square& candi1, square& candi2) { if (candi1.len < candi2.len) return true; else if (candi1.len == candi2.len) { if (candi1.r < candi2.r) return true; else if (candi1.r == candi2.r) { if (candi1.c < candi2.c) return true; else return false;..
-
windows 11로 업데이트 후 virtual box 에러 발생하는 문제 해결honey tips🍭 2023. 6. 6. 17:50
Error: failed to open/create the intrnal network hostinterfaceenetworking-virtualbox host-only ethernet adapter ====== 아래 글을 참고하여 해결했습니다 ====== https://hand-over.tistory.com/18 Windows 10 update 후 VirtualBox 네트워크 Host-only adapter 구동 문제 안녕하세요. Windows update 후(Window 10 1903)에 VirtualBox에서 이미지를 돌릴때 이미지의 네트워크 인터페이스를 호스트 전용 아답터(Host-only) 로 구동시 아래와 같이 VERR_INTNET_FLT_IF_NOT_FOUND 에러 메시지 hand-over...
-
[Vue.js] 프로젝트 생성하기공부 2023. 3. 20. 00:51
설치 항목 - node.js - vue npm install -g @vue/cli 개발에 유용한 Visual Studio Code용 Extension 설치 프로젝트 생성하기 vue create {프로젝트 이름} 에러 발생 (The template root requires exactly one element.) 👉 template 부분의 전체 내용을 태그로 감싸주면 됨 https://wotres.tistory.com/entry/vue-%EC%97%90%EB%9F%AC-Component-template-should-contain-exactly-one-root-element vue error 해결법 : Component template should contain exactly one root element. ..
-
python & mongoDB 연동공부/python 2023. 1. 18. 20:51
from pymongo import MongoClient connection = MongoClient('localhost', 27017) print(connection) print(connection.list_database_names()) # DB 목록 출력 db = connection.Test # DB 생성 print(db) collection = db.AAA # collection 생성 print(collection) ## insert_one data = {"name": "user01", "wall_post": "laugh out loud. LOL XD", "follow": 34 } col = db.collection result = col.insert_one(data) print(result) #..
-
[BOJ] 10866 덱 / C++공부/PS (백준) 2023. 1. 14. 16:51
https://www.acmicpc.net/problem/10866 10866번: 덱 첫째 줄에 주어지는 명령의 수 N (1 ≤ N ≤ 10,000)이 주어진다. 둘째 줄부터 N개의 줄에는 명령이 하나씩 주어진다. 주어지는 정수는 1보다 크거나 같고, 100,000보다 작거나 같다. 문제에 나와있지 www.acmicpc.net #include #include #define DEQUE_SIZE10000 using namespace std; int N; // 명령의 수 (1 N; while (N--) { cin >> cmd; if (cmd == "push_front") { cin >> input_data; push_front(input_data); } else if (cmd == "push_back") { ..
-
[BOJ] 10845 큐 / C++공부/PS (백준) 2023. 1. 3. 20:12
https://www.acmicpc.net/problem/10845 10845번: 큐 첫째 줄에 주어지는 명령의 수 N (1 ≤ N ≤ 10,000)이 주어진다. 둘째 줄부터 N개의 줄에는 명령이 하나씩 주어진다. 주어지는 정수는 1보다 크거나 같고, 100,000보다 작거나 같다. 문제에 나와있지 www.acmicpc.net #include #include #define MAX_CAPACITY10000 using namespace std; int N; // 명령의 수 (1 N; for (int i = 0; i > cmd; if (cmd == "push") { cin >> input_data; push(input_data); } else if (cmd == "pop") { ..
-
[BOJ] 10828 스택 / C++공부/C, C++ 2023. 1. 3. 19:46
https://www.acmicpc.net/problem/10828 10828번: 스택 첫째 줄에 주어지는 명령의 수 N (1 ≤ N ≤ 10,000)이 주어진다. 둘째 줄부터 N개의 줄에는 명령이 하나씩 주어진다. 주어지는 정수는 1보다 크거나 같고, 100,000보다 작거나 같다. 문제에 나와있지 www.acmicpc.net #include #include #define MAX_CAPACITY10000 #define EMPTY0 #define FULLMAX_CAPACITY using namespace std; int N; // 명령의 수 (1 N; for(int i=0; i> cmd; if (cmd == "push") { cin >> num; push(num); } else if (cmd == "po..