Untitled

mail@pastecode.io avatar
unknown
plain_text
23 days ago
617 B
2
Indexable
Never
/*
/*
void Try(int k, int score){
	if(score > sum){
		sum = score;
	}
	if(k == 3){
		
		return;
	}
	for(int i = 1; i <= K; i++){
		if(visited[i] == 0){
			visited[i] = 1;
			dat_khoa(i);
			int den = count_den();
			Try(k+1, den);
			visited[i] = 0;
			tat_khoa(i);
		}

	}


}



void Try(int k, int dem, int score){
	if(score > sum){
		sum = score;
	}
	if(dem == 3){
		
		return;
	}
	if(k == K+1){
		return;
	}
	for(int i = 0; i < 2; i++){
		if(i == 1){
			Try(k+1, dem, score);
		}
		else
		{
			visited[k] = 1;
			dat_khoa(k);
			Try(k+1, dem+ 1, count_den());
			tat_khoa(k);
			visited[k] = 0;
		}
	}

}
*/


*/
Leave a Comment