알고리즘 문제 풀이/1DP_과제(~180615)
171224_10798_세로읽기
//https://www.acmicpc.net/problem/10798 #include #include using namespace std;char word[5][15];int main(){ for(int i=0; i> word[i]; for(int i=0; i
//https://www.acmicpc.net/problem/10798 #include #include using namespace std;char word[5][15];int main(){ for(int i=0; i> word[i]; for(int i=0; i
//https://www.acmicpc.net/problem/5565 #include using namespace std; int main(){ int total, now; cin >> total; for(int i=0; i> now; total-=now; } cout
//https://www.acmicpc.net/problem/5543 #include using namespace std; int main(){ int hbg=2100; int bvrg=2100; for(int i=0;i> x; if(hbg>x) hbg=x; } for(int i=0; i> y; if(bvrg>y) bvrg=y; } cout
//https://www.acmicpc.net/problem/10797 #include using namespace std; int main(){ int day,x; cin >> day; int cnt=0; for(int i=0; i>x; if(day==x) cnt++; } cout