바킹독 알고리즘 문제집 - 연결 리스트
·
알고리즘/Algorithm
1406번 : 에디터 - silver 2 #include #include #include using namespace std; int main(void){ string str; cin>>str; list l; for(auto s:str) l.push_back(s); // list에 문자 순서대로 넣기 auto now = l.end(); // list::iterator cur = l.end() int q; cin>>q; while(q--){ // q만큼 돈다 char c; cin>>c; if(c=='P'){ // 왼쪽에 문자 추가 char w; cin>>w; l.insert(now, w); // 왼쪽 위치에 w 추가 }else if(c=='L'){ if(now!=l.begin()) now--; // 왼쪽으..
바킹독 알고리즘 문제집 - 배열
·
알고리즘/Algorithm
그동안 정리는 계속 하고있었는데 강의 정리를 올리는 건 아닌거 같아서,,, 푼 문제만 업로드 하기로 했다~ 노션을 공개로 돌리기에는 다른 것들이 너어어무 많아서..ㅎㅎ https://github.com/encrypted-def/basic-algo-lecture GitHub - encrypted-def/basic-algo-lecture: 바킹독의 실전 알고리즘 강의 자료 바킹독의 실전 알고리즘 강의 자료. Contribute to encrypted-def/basic-algo-lecture development by creating an account on GitHub. github.com 백준 10808번 : 알파벳 갯수 내가 푼 것 #include #include using namespace std; i..
SW Academy D1 -2
·
알고리즘/Algorithm
2050. 알파벳을 숫자로 변환 #include #include #include using namespace std; int main(void){ string str; cin>>str; for(int i=0;i
SW Academy D1 -1
·
알고리즘/Algorithm
2072. 홀수만 출력하기 #include using namespace std; int main(int argc, char** argv) { int test_case; int T,n; cin>>T; for(test_case = 1; test_case n; if(n%2==1) sum+=n; } cout
TaffyMuffin
'c++' 태그의 글 목록