์์ ์ C++๋ก ํ์๋๋ฐ, ์๊ฐ ์ด๊ณผ๊ฐ ๋ฌ์๋ค. ๋ค์๋ด๋ C++์ ์ด์ฐ... ์ด์ ๋ชป ์ฐ๊ฒ ๋ค. #include #include #include using namespace std; long long solution(int n, vector times) { long long answer = 0; sort(times.begin(), times.end()); vector officer = times; int passed = 0; int i = 0; while(passed < n) { officer[i]--; if(officer[i] = officer.size()){ answer++; i = 0; } } return answer+1; } ์ผ๋จ ์ด๊ฑธ ํ์ด์ฌ์ผ๋ก ๋จผ์ ์ฎ๊ธด๋ค. ๋ฌผ๋ก ๊ฒฐ๊ณผ๋ ๋์ผ. ์๊ฐ์ด๊ณผ. def ..