Devlog
[백준 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'..

[백준 1158] 요세푸스 문제
스터디/알고리즘 2022. 1. 6. 00:43

#include #include using namespace std; int main(){ int N, K; queuecircle; cin >> N >> K; for(int i=0; i

검색 태그