250x250
반응형
Notice
Recent Posts
Recent Comments
Link
목록붕어빵 (1)
N
(SWEA c++)1860. 진기의 최고급 붕어빵
swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5LsaaqDzYDFAXc&categoryId=AV5LsaaqDzYDFAXc&categoryType=CODE SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 손님이 들어오는 초를 vector에 저장하여 오름차순으로 정렬한다. for문을 돌면서 K * (guest[j] / M) < j + 1보다 작으면 붕어빵이 없다는 뜻이므로 ans를 false로 바꿔 break. ans의 값에 따라 "Possible", "Impossible"을 출력하면 된다. #include #include #incl..
SW Expert Academy
2020. 10. 20. 09:28