HUST Online Judge WebBoard
Problem 2504 >> l
tongxiangyang @ 2024-10-03 15:35:51
[ Quote ] [ Edit ] [ Delete ] 1#
yy
tongxiangyang @ 2024-10-03 15:36:26
[ Quote ] [ Edit ] [ Delete ] 2#
你谁啊
luoen @ 2024-10-03 15:43:34
[ Quote ] [ Edit ] [ Delete ] 3#
老师~tongxiangyang浪费讨论版内存~扣他积分
yinziyang @ 2024-10-07 17:29:46
[ Quote ] [ Edit ] [ Delete ] 4#
pvzgame.app
yinziyang @ 2024-10-07 17:29:55
[ Quote ] [ Edit ] [ Delete ] 5#
?
yinziyang @ 2024-10-09 18:02:42
[ Quote ] [ Edit ] [ Delete ] 6#
https://www.ddooo.com/softdown/188190.htm
chenrui @ 2024-10-10 18:02:45
[ Quote ] [ Edit ] [ Delete ] 7#
#include <bits/stdc++.h>
using namespace std;
int main(){
string s,t;
int pos,counts=0,ans;
getline(cin,s);
getline(cin,t);
for(int i=0;i<s.size();i++){
if (s[i]>='A'&&s[i]<='Z'){
s[i]=s[i]+32;
}
}
for(int i=0;i<t.size();i++){
if(t[i]>='A'&&t[i]<='Z'){
t[i]=t[i]+32;
}
}
s=" "+s+" ";
t=" "+t+" ";
pos=t.find(s,0);
ans=pos;
while(pos!=-1) {
counts++;
pos=t.find(s,pos+1);
}
if(ans==-1){
cout<<-1;
}else{
cout<<counts<<" "<<ans;
}
return 0;
}
yinziyang @ 2024-11-06 16:50:31
[ Quote ] [ Edit ] [ Delete ] 8#
#include<bits/stdc++.h>
using namespace std;
struct x{
string s;
double v;
int f;
};
int main(){
int n;
cin>>n;
x a[n];
int sum=0;
for(int i=0;i<n;i++){
cin>>a[i].s>>a[i].v>>a[i].f;
if(a[i].v>=37.5&&a[i.f])
}

return 0;
}