//IN THE NAMME OF GOD #include using namespace std; int score[4],ranking[4]={7,13,21,30},game[4][4]; double p=0; bool chance(){ int cnt=0; for(int i=0;i<4;i++){ if(score[2]>score[i] || (score[2]==score[i] && ranking[2]1) return 1; return 0; } void rec(int p1,int p2,double d){ if(p2==4){ if(chance()){ p+=d; //cout<