문제 링크입니다: https://www.acmicpc.net/problem/15235
15235번: Olympiad Pizza
The contestants that get a slice are, in order: 1, 2, 3, 4, 2, 4, 2, 4, 4. So at t=1s the first contestant get all slices, at t=3s the third contestant gets a slice, at t=7s the second student finishes and finally at t=9s the fourth student gets the last s
www.acmicpc.net
간단한 큐 구현 문제였습니다.
N의 최댓값이 1,000이기 때문에 단순 구현으로 풀 수 있는 문제였습니다.
개발환경:Visual Studio 2017
지적, 조언, 질문 환영입니다! 댓글 남겨주세요~
반응형
'알고리즘 > BOJ' 카테고리의 다른 글
백준 25527번 Counting Peaks of Infection (0) | 2022.08.31 |
---|---|
백준 25501번 재귀의 귀재 (0) | 2022.08.28 |
백준 9517번 아이 러브 크로아티아 (0) | 2021.08.19 |
백준 4562번 No Brainer (1) | 2021.07.22 |
백준 9493번 길면 기차, 기차는 빨라, 빠른 것은 비행기 (0) | 2021.07.20 |