개발/알고리즘문제2 알고스팟-URIDecoding 문제 출처 - Algospot ICPC Seoul Regional Warmup 2008- 문제URI (Uniform Resource Identifier) is a compact string used to identify or name resources on the Internet. Some examples of URI are below:http://icpc.baylor.edu.cn/mailto:foo@bar.orgftp://127.0.0.1/pub/linuxreadme.txtWhen transmitting *URI*s through the Internet, we escape some special characters in *URI*s with percent-encoding. Percent-encoding.. 2015. 7. 23. 다음 입사문제 [문제]1차원의 점들이 주어졌을 때, 그 중 가장 거리가 짧은 것의 쌍을 출력하는 함수를 작성하시오. (단 점들의 배열은 모두 정렬되어있다고 가정한다.)예를들어 S={1, 3, 4, 8, 13, 17, 20} 이 주어졌다면, 결과값은 (3, 4)가 될 것이다. [풀이]순차 탐색 방법으로 풀 수 있다. #include using namespace std;void FindShort(int _testArr[]) {int iIdx = 1;int iSize = _testArr[1]- _testArr[0];//최소 2개의 점은 있다고 가정for(int i = iIdx; i _testArr[i+1] - _testArr[i].. 2015. 3. 21. 이전 1 다음