알고리즘 문제 풀이/1DP_과제(~180615)
180503_3460_이진수
//https://www.acmicpc.net/problem/3460 #include using namespace std; int main(){ int t; cin >> t; while(t-->0){ int n; cin >> n; for(int i=0; ;i++){ if(n%2) cout
//https://www.acmicpc.net/problem/3460 #include using namespace std; int main(){ int t; cin >> t; while(t-->0){ int n; cin >> n; for(int i=0; ;i++){ if(n%2) cout
//https://www.acmicpc.net/problem/2576 #include using namespace std; int main(){ int num[7]; int sum=0; int mn=101; for(int i=0; i> num[i]; if(num[i]%2) { sum+=num[i]; if(num[i]
//https://www.acmicpc.net/problem/2587 #include #include using namespace std; int main(){ int num[5]; int avg=0; for(int i=0; i>num[i]; avg+=num[i]; } avg/=5; sort(num, num+5); cout
#include using namespace std; int main(){ int l, p; cin >> l >> p; int ans=l*p; for(int i=0; i> x; cout