구현

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

180524_9626_크로스워드 퍼즐

//https://www.acmicpc.net/problem/9626 #include using namespace std;char map[10][10];int main(){ int m,n; int u,l,r,d; cin >> m >> n; cin >> u >> l >> r >> d; for(int i=0; i> map[i]; } for(int i=0; i

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

180119_1159_농구경기

//https://www.acmicpc.net/problem/1159#include using namespace std;int cntalphb[26]; int main() { int n; cin >> n; bool chk=0; for(int i=0; i> name; cntalphb[name[0]-'a']++; } for(int i=0; i=5) { chk=1; cout

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

180105_10707_수도요금

//https://www.acmicpc.net/problem/10707 #include using namespace std; int main(){ int a,b,c,d,p; cin >>a >> b >> c>> d>> p; int costx=a*p; int costy=(p>c ?b+d*(p-c) :b ); if(costx>costy) cout

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

171227_2563_색종이

//https://www.acmicpc.net/problem/2563#include using namespace std;bool paper[100][100]; int main(){ int n,ans,x,y; cin >> n; ans=0; for(int i=0 ; i> x >> y; for(int j=0; j

bong sue
'구현' 태그의 글 목록