kapibala__ @ 2024-08-28 20:59:54
第二个测试点的输出的第29行等等出现了 12:10 等情况这是为什么呢?
by kapibala__ @ 2024-08-28 21:02:13
甚至还有16:18
by Down_syndrome @ 2024-08-28 21:02:59
会打乒乓球(羽毛球等也是)的都知道(题面里也有)如果有一方达到
by kapibala__ @ 2024-08-28 21:03:16
11:3
11:2
11:2
11:4
11:9
11:0
11:7
11:4
11:9
11:4
11:3
11:5
11:8
11:9
11:6
11:5
11:8
11:4
11:3
11:3
11:4
11:9
11:1
11:7
11:6
11:4
11:3
11:8
12:10
11:4
11:4
11:3
11:6
11:7
11:2
11:3
11:8
11:3
12:10
11:5
11:7
11:8
9:11
11:4
11:3
11:7
11:5
11:8
11:2
11:9
11:7
11:5
11:1
11:7
11:6
11:6
12:10
11:4
11:9
7:11
11:2
11:8
11:5
11:3
11:9
11:7
11:9
11:2
9:11
11:3
11:3
8:11
11:1
11:2
11:4
11:5
11:4
11:1
11:6
11:4
11:7
11:4
11:4
11:7
8:11
11:6
11:5
11:3
11:2
16:18
11:7
11:4
11:7
11:5
11:3
14:12
11:3
11:3
11:3
11:7
11:8
11:4
11:4
11:5
11:6
11:9
11:0
11:7
11:6
12:10
11:4
11:2
11:2
11:5
11:8
11:9
11:3
11:4
11:5
11:7
11:5
2:0
21:4
21:6
21:10
21:10
21:11
21:6
21:18
21:11
21:13
21:6
21:7
21:10
21:12
21:8
21:17
21:6
21:10
21:9
21:5
21:11
21:15
21:15
21:15
21:10
21:12
21:6
21:16
21:9
21:8
21:15
21:13
21:17
21:11
21:10
21:17
21:12
21:7
21:11
21:8
21:7
21:7
21:11
21:8
21:16
21:13
21:5
22:20
21:12
21:9
21:14
21:7
21:7
21:12
21:11
21:9
21:8
21:13
21:13
21:4
21:13
21:10
21:10
21:11
7:2
输出我发在这里了
by kapibala__ @ 2024-08-28 21:05:02
哦知道了
by kapibala__ @ 2024-08-28 21:06:13
蟹蟹 益馆
by kapibala__ @ 2024-08-28 21:29:03
#include <bits/stdc++.h>
#define int long long
using namespace std;
int s[100005];
char t;
int hh1,ds1,hh2,ds2;
signed main(){
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int k=0;
for(int i=1;cin>>t;i++){
if(i==1&&t=='E'){
cout<<"0:0"<<endl;
cout<<endl<<"0:0";
return 0;
}
if(t=='W'){
s[k]=1;
k++;
}
else if(t=='L'){
s[k]=2;
k++;
}
else
{
break;
}
}
for(int i=0;i<k;i++){
if(s[i]==1){
hh1++;
}
else if(s[i]==2){
ds1++;
}
if((ds1>=11||hh1>=11)&&(abs(ds1-hh1)>=2)){
cout<<hh1<<":"<<ds1<<endl;
hh1=0;
ds1=0;
}
else if(i>=k-1){
cout<<hh1<<":"<<ds1<<endl;
}
}
cout<<endl;
for(int i=0;i<k;i++){
if(s[i]==1){
hh2++;
}
else if(s[i]==2){
ds2++;
}
if((ds2>=21||hh2>=21)&&(abs(ds2-hh2)>=2)){
cout<<hh2<<":"<<ds2<<endl;
hh2=0;
ds2=0;
}
else if(i>=k-1){
cout<<hh2<<":"<<ds2<<endl;
}
}
return 0;
}
by kapibala__ @ 2024-08-28 21:30:33
上面的大佬帮帮我个蒟蒻debug一下吧 90分 最后一个点输出没问题呀
by kapibala__ @ 2024-08-28 21:31:13
这次不像上次一样纸张