BOJ

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

171127_4344_평균은 넘겠지

//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)

171127_2743_단어 길이 재기

//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)

171126_1032_명령 프롬프트

//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)

171126_10808_알파벳 개수

//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

bong sue
'BOJ' 태그의 글 목록 (29 Page)