전체 글

취업 준비하면서 공부하던 블로그인데, 이제 나이가 먹어가니까 사는 준비도 해야해서 이거저거 씁니다.
알고리즘 문제 풀이/1DP_과제(~180615)

171213_2789_유학 금지

//https://www.acmicpc.net/problem/2789 #include #include using namespace std; int main(){ string s; s="CAMBRIDGE"; int l=s.size(); string str; cin >> str; int l2=str.size(); for(int i=0; i

알고리즘 문제 풀이/1DP_과제(~180615)

171212_6603_로또

//https://www.acmicpc.net/problem/6603 #include using namespace std;int lotto[7];int S[14];bool visit[13]={0,};int k;bool chk; void dfs(int n,int cnt){ visit[n]=1; for(int i=1; ;i++) { int nn=n+i; lotto[cnt]=S[nn]; if(cnt==6) { for(int i=0; i k; if(!k) break; for(int i=1; i> S[i]; dfs(0,0); cout

알고리즘 문제 풀이/1DP_과제(~180615)

171211_5586_JOI와 IOI

//https://www.acmicpc.net/problem/5586 #include #include using namespace std; int main(){ string s; cin >> s; int l=s.size(); int cntj=0; int cnti=0; for(int i=0; i

알고리즘 문제 풀이/1DP_과제(~180615)

171210_5218_알파벳 거리

//https://www.acmicpc.net/problem/5218 #include #include using namespace std; int main(){ int N; cin >> N; for(int i=0; i> s1 >> s2; cout

bong sue
수봉수봉 신변잡기