Devlog
[백준 19532] 수학은 비대면강의입니다
스터디/알고리즘 2022. 2. 11. 01:26

#include #include using namespace std; int main() { vector N(6); for(int i = 0; i> N[i]; for(int x = -1000; x

[백준 1713] 후보 추천하기
스터디/알고리즘 2022. 1. 18. 23:34

#include #include #include using namespace std; #define MAX 101 int n, m; int recommend[MAX]; int main(){ cin >> n >> m; vector students(n); for (int i = 0; i > pick; recommend[pick]++; bool check = true; for (int j = 0; j < n; j++){ if (students[j].second == 0){ students[j].second = pick; students[j].first = i; check = false; break; } else if (students[j].second == pic..

[백준 5597] 과제 안 내신 분...?
스터디/알고리즘 2022. 1. 13. 18:36

#include #include using namespace std; int main(){ int students[31]={0}; int n; for(int i=1; i> n; students[n]=1; } for(int i=1; i

[백준 5212] 지구 온난화
스터디/알고리즘 2022. 1. 13. 18:32

처음 시도한 풀이: 실패 #include #define MAX 10 using namespace std; int main(){ int R, C; cin >> R >> C; char map[MAX][MAX]={0}; char update_map[MAX][MAX]={0}; for(int i=1; i map[i][j]; } } int count = 0; for(int i=1; i

[백준 2164] 카드2
스터디/알고리즘 2022. 1. 10. 22:32

#include #include using namespace std; int main(){ int n; queueq; cin >> n; for(int i=1; i 1){ q.pop(); q.push(q.front()); q.pop(); } cout

[백준 22864] 피로도
스터디/알고리즘 2022. 1. 10. 21:54

#include using namespace std; int main(){ int A, B, C, M; int fatigue = 0, time = 0, work = 0, rest = 0, burnout = 0; cin >> A >> B >> C >> M; rest = C; burnout = M; if(A > M){ cout

[백준 2606] 바이러스
스터디/알고리즘 2022. 1. 10. 21:47

#include using namespace std; int v, e; const int MAX = 101; int V[MAX][MAX] = { 0, }; bool checked[MAX] = { 0, }; int count = 0; void DFS(int x) { checked[x] = true; count++; for (int i = 1; i > v >> e; for (int i = 0; i > n >> m; V[n][m] = 1; V[m][n] = 1; } DFS(1); cout

[백준 20436] ZOAC 3
스터디/알고리즘 2022. 1. 10. 21:37

#include #include #include using namespace std; int main(){ string SL, SR; string str; int time = 0; string keyboard[3][10]={ {'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'}, {'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'}, {'z', 'x', 'c', 'v', 'b', 'n', 'm'} }; string Lk[] = {'q', 'w', 'e', 'r', 't', 'a', 's', 'd', 'f', 'g', 'z', 'x', 'c', 'v'}; string Rk[] = {'y', 'u', 'i', 'o', 'p', 'h', 'j'..

검색 태그