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))】
推荐阅读
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 一个人的旅行,三亚
- 讲述,美丽聪明的海欧!
- 一个人的碎碎念
- django-前后端交互
- 日省11
- “成年人的世界,命都是钱给的”
- 生命中最迷人的部分轻拿轻放
- 粘人的小可爱
- 爬虫数据处理HTML转义字符
- HTML基础--基本概念--跟着李南江学编程