html|聪明人的游戏提高篇(第二章综合练习:乒乓球(table))

#include #include #include using namespace std; long long i,k=0,w=0,l=0,w1=0,l1=0,a[100000],b[100000]; char t; int main() { do { cin >>t; if (t=='W') { w++; w1++; } else if (t=='L') { l++; l1++; } if ((w>=11||l>=11)&&abs(w-l)>1) { cout <=21||l1>=21)&&abs(w1-l1)>1) { k++; a[k]=w1; b[k]=l1; w1=0; l1=0; } } while (t!='E'); cout <
【html|聪明人的游戏提高篇(第二章综合练习:乒乓球(table))】

    推荐阅读