코딩테스트/프로그래머스
공 던지기 (c++)
shin0112
2024. 1. 16. 02:45
sol
1. 오른쪽으로 한 명을 건너뛰고 그 다음 사람에게 던짐 = index 2 증가
2. index 범위를 벗어나면, 나머지 연산으로 처리
shin0112/programmers_cpp: programmers' coding test solutions (github.com)
출처 : 프로그래머스 코딩 테스트 연습 - 공 던지
https://school.programmers.co.kr/learn/courses/30/lessons/120843