@[陶索梓](/space/show?uid=81418) [您知道10:10以后会附加吗](https://baidu.com)
by WA鸭鸭 @ 2018-11-08 19:43:38
@[WA鸭鸭](/space/show?uid=93249)
不知道,请问什么意思。。。
by 陶索梓 @ 2018-11-08 20:03:28
@[陶索梓](/space/show?uid=81418) 在比分10:10的情况下,领先2分胜利。。。嗯。。好像您程序有写(但是写错了QwQ)
by WA鸭鸭 @ 2018-11-08 21:11:51
我也是完全一样,但是显示错了
by keywords @ 2018-12-03 16:48:47
我也是完全一样,但是显示错了!!!
佛了
by Vel_ @ 2019-02-12 06:36:54
完全一样,显示错误! 20分纳尼?```
#include<bits/stdc++.h>
using namespace std;
vector<pair<int, int> > res21;
int pre11, pre21, loser11, loser21;
void win() {
pre11++;
pre21++;
if(pre11 >= 11 && pre11 >= loser11 + 2){
printf("%d:%d\n",pre11, loser11);
pre11 = loser11 = 0;
}
if(pre21 >= 21 && pre21 >= loser21 + 2) {
res21.push_back(make_pair(pre21, loser21));
pre21 = loser21 = 0;
}
}
void lose() {
loser11++;
loser21++;
if(loser11 >= 11 && loser11 >= pre11 + 2) {
printf("%d:%d\n",pre11, loser11);
pre11 = loser11 = 0;
}
if(loser21 >= 21 && loser21 >= pre21 + 2) {
res21.push_back(make_pair(pre21, loser21));
pre21 = loser21 = 0;
}
}
int main() {
char Char = '?';
// freopen("word.out","w",stdout);
while(true) {
Char = getchar();
if(Char == 'E')break;
if(Char == '\n')continue;
if(Char == 'W') win();
else lose();
}
printf("%d:%d\n\n",pre11, loser11);
int sz = (int)res21.size();
for(int i = 0; i < sz; ++i) {
printf("%d:%d\n",res21[i].first, res21[i].second);
}
printf("%d:%d",pre21,loser21);
return 0;
}
```
by 耶梦加得 @ 2019-03-16 23:51:39
完全一样 20分 +1
```python
record = ''
while not 'E' in record:
record = record + input()
record = record.split('E')[0]
def jud(record,score):
hrhr = 0
em = 0
for i in record:
if i == 'W':
hrhr = hrhr + 1
else:
em = em + 1
if (hrhr >= score or em >= score) and abs(hrhr - em) >= 2:
print('%r:%r' %(hrhr,em))
hrhr = 0
em = 0
print('%r:%r' %(hrhr,em))
jud(record,11)
print()
jud(record,21)
```
by lnslfnl @ 2019-08-30 11:13:47