Problem 2504 >> l |
tongxiangyang @ 2024-10-03 15:35:51
yy
|
tongxiangyang @ 2024-10-03 15:36:26
你谁啊
|
luoen @ 2024-10-03 15:43:34
老师~tongxiangyang浪费讨论版内存~扣他积分
|
yinziyang @ 2024-10-07 17:29:46
pvzgame.app
|
yinziyang @ 2024-10-07 17:29:55
?
|
yinziyang @ 2024-10-09 18:02:42
https://www.ddooo.com/softdown/188190.htm
|
chenrui @ 2024-10-10 18:02:45
#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
#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; } |