社区讨论
40分求调
P5587打字练习参与者 1已保存回复 0
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 0 条
- 当前快照
- 1 份
- 快照标识符
- @lo1rl7h4
- 此快照首次捕获于
- 2023/10/23 01:50 2 年前
- 此快照最后确认于
- 2023/11/03 02:28 2 年前
CPP
#include<bits/stdc++.h>
using namespace std;
string s[10010],s1[10010];
long long ans,t;
int main(){
ios::sync_with_stdio(false);
int n=1,m=1;
while(getline(cin,s[n])){
if(s[n]=="EOF")break;
n++;
}
while(getline(cin,s1[m])){
if(s1[m]=="EOF")break;
m++;
}
for(int i=1,j=1;i<n,j<m;i++,j++){
for(int x=0,y=0;x<s[i].size(),y<s1[i].size();x++,y++){
while(s1[j][y]=='<'){
s1[j].erase(y-1,2);
}if(s[i][x]==s1[j][y]){
ans++;
}
}
}cin>>t;
cout<<round(ans*60.0/t);
return 0;
}
回复
共 0 条回复,欢迎继续交流。
正在加载回复...