-극장좌석(3202)-


-극장좌석(3202)-

문제 :https://www.acmicpc.net/problem/2302 2302번: 극장 좌석 주어진 조건을 만족하면서 사람들이 좌석에 앉을 수 있는 방법의 가짓수를 출력한다. 방법의 가짓수는 2,000,000,000을 넘지 않는다. (2,000,000,000 < 231-1) www.acmicpc.net 풀이 : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 #include using namespace std; int n, m; int sit[41]; void makesit() { sit[0] = 1; sit[1] = 1; sit[2] = 2; for(int i = 3; i > n; ..


원문링크 : -극장좌석(3202)-