@[C2020陈铭浩](/user/307603) 哪一道题?~~就算说了我也应该不会~~
by Interstice @ 2020-07-15 19:01:53
@[李东齐01](/user/342371) P5587
by _cmh @ 2020-07-15 19:02:27
P5587 打字练习?
by Interstice @ 2020-07-15 19:02:52
ok
by Interstice @ 2020-07-15 19:03:23
借帖求助
https://www.luogu.com.cn/discuss/show/237716
by zhoukangyang @ 2020-07-15 19:04:23
换成char
by Interstice @ 2020-07-15 19:10:13
https://www.luogu.com.cn/record/35192673
by Interstice @ 2020-07-15 19:10:39
@[C2020陈铭浩](/user/307603) 还有个测试点不对
by Interstice @ 2020-07-15 19:11:29
@[李东齐01](/user/342371) 代码你发出来我康康
by _cmh @ 2020-07-15 19:22:10
```cpp
#include<bits/stdc++.h>
using namespace std;
string now,f,ss;
char s[100010][10010];
int cnt,ans,x,cnt2;
int main(){
while(getline(cin,now)){
if(now=="EOF") break;
cnt++;
int cl=0;
for(int i=0;i<now.length();i++){
if(now[i]=='<'){
cl--;
if(cl<0) cl=0;
continue;
}
s[cnt][cl++]=now[i];
}
}
while(getline(cin,f)){
if(f=="EOF") break;
cnt2++;
int cl=0;
for(int i=0;i<f.length();i++){
if(f[i]=='<'){
cl--;
if(cl<0) cl=0;
continue;
}
ss[cl++]=f[i];
}
for(int j=0;j<cl;j++)
if(ss[j]==s[cnt2][j]) ans++;
}
cin>>x;
cout<<(int)((ans*1.0)/(x*1.0)*60+0.5);
return 0;
}
```
by Interstice @ 2020-07-15 19:24:30