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 |
请问哪里错啦?#include<iostream> #include<string> using namespace std; bool isAllinAll(string s,string t) { if(s==t) return false; intj =0; for(int i =0; i<s.length(); i++) { j=t.find(s[i],j) ; if(j==-1) return false; } return true; } int main() { string s,t; while(cin>>s>>t) { if(isAllinAll(s,t)) cout<<"YES"<<endl; else cout<<"NO"<<endl; } } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator