![[BOJ] 백준_2810번_컵홀더_C/C++](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FcIKo9D%2FbtrunO473c3%2FAAAAAAAAAAAAAAAAAAAAANhTUOZ-NhhOAgPOA4vUCvdbgahXWoLylRO4FoFRnMwY%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DAXUgxmDfm0aV04uafE%252FvM%252B3l7tU%253D)
백준 알고리즘2022. 2. 26. 11:56[BOJ] 백준_2810번_컵홀더_C/C++
문제 출처 https://www.acmicpc.net/problem/2810 2810번: 컵홀더 첫째 줄에 좌석의 수 N이 주어진다. (1 ≤ N ≤ 50) 둘째 줄에는 좌석의 정보가 주어진다. www.acmicpc.net 문제 설명 코드 //[BOJ] 2810번 컵홀더 #include using namespace std; int main() { int n; string s; cin >> n; int total = n+1; cin >> s; for (int i = 0; i n) total = n; cout