ํด์ฌ
-
[BaekJoon] ์ผ์ฑ sw ์ญ๋ ํ ์คํธ(ํด์ฌ)SW Test/BaekJoon 2020. 4. 26. 17:44
์ด ๋ฌธ์ ๋ c++๋ก ํ์ด๋ฅผ ์์ฑํ์์ต๋๋ค. ๋ฌธ์ ์์ ํ์ด #include #include using namespace std; int result=0; int n; int arr[20]={0}; int pay[20]={0}; void dfs(int idx,int sum){ bool flag=false; for(int i=idx;in; for(int i=1;i>arr[i]>>pay[i]; } dfs(1,0); cout