백준

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

171220_3986_좋은 단어

//https://www.acmicpc.net/problem/3986 #include #include #include using namespace std; int main(){ int n; int cnt=0; cin >> n; for(int i=0; i> s; int l=s.size(); stack st; for(int j=0; j

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

171219_5585_거스름돈

//https://www.acmicpc.net/problem/5585 #include using namespace std; int main(){ int n,rest; int cnt=0; cin >> n; rest=1000-n; cnt+=rest/500; rest%=500; cnt+=rest/100; rest%=100; cnt+=rest/50; rest%=50; cnt+=rest/10; rest%=10; cnt+=rest/5; rest%=5; cnt+=rest; cout

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

171218_2857_FBI

//https://www.acmicpc.net/problem/2857 #include #include using namespace std; int main(){ int cnt=0; for(int i=1; i> s; int l=s.size(); for(int j=0; j

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

171217_3046_R2

//https://www.acmicpc.net/problem/3046 #include using namespace std; int main(){ int R1, S; cin >> R1 >> S; int R2=2*S-R1; cout

bong sue
'백준' 태그의 글 목록 (25 Page)