๋ธ๋์ญ
-
[BaekJoon] 2798๋ฒ : ๋ธ๋์ญSW Test/BaekJoon 2020. 12. 12. 23:31
์ด ๊ธ์ c++๋ก ํ์ด๋ฅผ ์์ฑํ์์ต๋๋ค. ๋ฌธ์ ์์ ํ์ด #include using namespace std; int result = 0; int n,m; int vec[100]={0}; bool check[100] = {0}; void blackjak(int cnt,int sum){ if(cnt==3){ if(m>=sum){ result = max(result,sum); } }else{ for(int i=0;i>n>>m; for(int i=0;i>vec[i]; } blackjak(0,0); cout