목록Algorithm/Programmers (43)
Try
출처코딩 도장http://codingdojang.com/scode/626?answer_mode=hide 문제- 피보나치 시저 암호를 만드시오 맨 처음 줄에는 정수인 암호키가 주어진다. (0 < N < 10000 ) 그 다음 줄에는 변환하고 싶은 문자열이 주어진다. 문자열의 길이만큼 피보나치 수로 바꿔 문자열을 바꾸시오. (예를 들어 암호키가 4 라면 수열은 1,4,5,9 . . . 로 되어 그 숫자만큼 문자열을 돌린다.) 입력에 소문자는 들어가 있지않으며 기호나 숫자가 들어가 있을 시 그대로 둔다. ( 공백 포함) (시작은 무조건 1이다.) 입력) 1AAAAA1HELLO, WORLD!3ABCDE 출력) BBCDFIFNOT, EMBTG!BEGKP 소스 123456789101112131415161718192..
출처https://uva.onlinejudge.org/external/1/p136.pdf 코딩도장http://codingdojang.com/ Ugly numbers are numbers whose only prime factors are 2, 3 or 5 소스 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758/*/* /* khsh5592@naver.com/* has3ong.tistory.com/* /* 2018 - 11 - 12/**/ #include#include using namespace std; int Ugly_Number(int n){ if(n==1) {..
시간복잡도 과 두가지 방법 예제 소스. 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152/*/* /* khsh5592@naver.com/* has3ong.tistory.com/* /* 2018 - 11 - 11/**/#include #include #include using namespace std; int Check_Data_1[15] = {10, 11, 13, 0, 1, 3, 5, 2, 4, 9, 12, 6, 8, 14, 7};int Check_Data_2[15] = {10, 5, 13, 0, 1, 3, 8, 2, 4, 9, 12, 6, 8, 14, 7}; void Check_Ar..