话不多说直接上代码(其实根本没有屁话可说)
凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数
#includeusing namespace std; bool v[4],flag=false; long long sum[4]; int die[3],k; string ss; int getrand(int min,int max); void init() { for(int i=1; i<=3; i++) sum[i]=10000; memset(v,true,sizeof(v)); } void pr() { if(sum[1]>0) printf("一号玩家の币:%lldn",sum[1]); else printf("一号赌狗已破产n"); if(sum[2]>0) printf("二号玩家の币:%lldn",sum[2]); else printf("二号赌狗已破产n"); if(sum[3]>0) printf("三号玩家の币:%lldn",sum[3]); else printf("三号赌狗已破产n"); } void prr() { printf("GAME OVERn"); printf("请%d号和%d号玩家接受",die[1],die[2]); cout< >ss; pr(); while(true) { for(int i=1; i<=3; i++) { if(v[i]==true) { long long x; //long long bz; printf("请%d号玩家输入下注金额n",i); //bz=sum[i]*0.2; //scanf("%lld",&x); //a:{ printf("请输入不小于总金额20%的数:"); scanf("%lld",&x); int beil=getrand(1,10); int r=rand(); if(r%2==0) { sum[i]+=beil*x; cout<<"+"<



