프로그래머즈 (2) 썸네일형 리스트형 쇠막대기 12345678910111213141516171819202122232425#include #include using namespace std; long solution(string arrangement) { long answer = 0; long lineCount = 0; for(int i = 0; i Int { let letters = arrangement.map() {String($0)} let length = letters.count var lineCount: Int = 0 var answer: Int = 0 for i in 0.. 완주하지 못한 선수 123456789101112131415161718192021#include #include #include using namespace std; string solution(vector participant, vector completion) { string answer = ""; sort(participant.begin(), participant.end()); sort(completion.begin(), completion.end()); int answerIdx; for(int i = 0, j = 0; i 이전 1 다음