VisionLLM: Large Language Model is alsoan Open-Ended Decoder for Vision-Centric Tasks 논문 리뷰
·
논문 읽기
보호되어 있는 글입니다.
[백준] 29634번 Hotel
·
백준 문제/BFS
문제: 29634번: Hotel #include using namespace std;vector> board;vector> visits;int dx[4] = { -1, 0, 1, 0 };int dy[4] = { 0, -1, 0, 1 };int n, m; // 높이, 너비long long BFS(pair start) { long long size = 0; queue> nexts; nexts.push(start); visits[start.first][start.second] = true; while (!nexts.empty()) { pair cur = nexts.front(); nexts.pop(); size++; for (int i = 0; i n - 1 || ny m - 1) continue;..
[백준] 1461번 도서관
·
백준 문제/그리디
문제: 1461번: 도서관 #include using namespace std;int main() { ios::sync_with_stdio(0); cin.tie(0); int n, m; // 책의 개수, 세준이가 드는 책의 개수 cin >> n >> m; if (n == 1) { int book; cin >> book; if (book > 0) { cout plusBooks; vector minusBooks; for (int i = 0; i > book; if (book > 0) { plusBooks.push_back(book); } else { minusBooks.push_back(book); } } sort(plusBooks.begin(), plusBooks.end()); s..
[백준] 24446번 알고리즘 수업 - 너비 우선 탐색 3
·
백준 문제/그래프
문제: 24446번: 알고리즘 수업 - 너비 우선 탐색 3 //#include #include #include #include #include #include #include using namespace std;int main() { ios::sync_with_stdio(0); cin.tie(0); int n, m, r; // 정점의 수, 간선의 수, 시작 정점 cin >> n >> m >> r; // 0번 인덱스 안 써 vector> nodes = vector>(n + 1); vector dists = vector(n + 1, -1); vector visits = vector(n + 1, 0); for (int i = 0; i > u >> v; // 무방향 그래프 nodes[u].push_back(..
[백준] 1484번 다이어트
·
백준 문제/투포인트
문제: 1484번: 다이어트 #include #include #include #include #include #include #include #include //#include using namespace std;int main(void) { ios::sync_with_stdio(0); cin.tie(0); int g; // 현재 몸무게 제곱 - 기억 몸무게 제곱 cin >> g; long long st = 1; long long en = 2; bool found = false; priority_queue, greater> weights; while (en g) { // 기억을 키워야종 st++; } ..
Part3-Physical layer-Transmission
·
컴퓨터네트워크 정리
보호되어 있는 글입니다.
[백준] 21736번 헌내기는 친구가 필요해
·
백준 문제/BFS
문제: 21736번: 헌내기는 친구가 필요해 #include #include #include using namespace std;vector> visit(600, vector(600));int dx[4] = { 1, 0, -1, 0 };int dy[4] = { 0, 1, 0, -1 };int main() { ios::sync_with_stdio(0); cin.tie(0); int n, m; cin >> n >> m; pair startPos; vector> campus(n); for (int i = 0; i (m); string input; cin >> input; for (int j = 0; j > nexts; nexts...