알고리즘/BOJ

백준 6768번 Don't pass me the ball!

꾸준함. 2021. 3. 13. 23:51

문제 링크입니다: www.acmicpc.net/problem/6768

 

6768번: Don’t pass me the ball!

A CCC soccer game operates under slightly different soccer rules. A goal is only counted if the 4 players, in order, who touched the ball prior to the goal have jersey numbers that are in strictly increasing numeric order with the highest number being the

www.acmicpc.net

N-1명의 선수 중 3명을 고르는 경우이므로 Combination(N-1, 3)을 구하면 되는 문제였습니다.

 

 

개발환경:Visual Studio 2017

 

지적, 조언, 질문 환영입니다! 댓글 남겨주세요~

반응형

'알고리즘 > BOJ' 카테고리의 다른 글

백준 8710번 Koszykarz  (0) 2021.03.14
백준 6778번 Which Alien?  (0) 2021.03.13
백준 6764번 Sounds fishy!  (0) 2021.03.13
백준 6763번 Speed fines are not fine!  (0) 2021.03.12
백준 5928번 Contest Timing  (0) 2021.03.11