알고리즘 문제 풀이/1DP_과제(~180615)
2017.11.27
//https://www.acmicpc.net/problem/4344 #include #include using namespace std; int main(){ int C; cin >> C; for(int i=0; i> N; for(int j=0; j> x; sum+=x; s.push(x); } avg=sum/N; for(int j=0; javg) cnt++; s.pop(); } float percent = ((float) cnt/ (float) N )*100; cout
알고리즘 문제 풀이/1DP_과제(~180615)
2017.11.27
//https://www.acmicpc.net/problem/2743 #include using namespace std; int main(){ char str[101]; cin >> str; for(int i=0 ;i s; int l=s.size(); cout > str; int l=strlen(str); cout
알고리즘 문제 풀이/1DP_과제(~180615)
2017.11.26
//https://www.acmicpc.net/problem/1032 #include #include using namespace std; int main(){ string str1, str2; int N; cin >> N >> str1; int l=str1.size(); bool chk[51]={1,}; if(N==1) {cout str2; for(int j=0; j
알고리즘 문제 풀이/1DP_과제(~180615)
2017.11.26
//https://www.acmicpc.net/problem/10808 #include #include using namespace std; int main(){ int alphabet[26]; for(int i=0; i> s; int l=s.size(); for(int i=0; i