Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
~~~错在哪了???怎么改都是WA!!!//All in All #include <iostream> using namespace std; #include <string> int main() { int number = 0; int k=0; string s , t; cin>>s>>t; for(int j=0;j<s.size();j++) { for(;k<t.size();k++) { if(s.at(j)==t.at(k)) { number++; break; } } } if(number == s.size()) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator