比赛链接:ABC352
签到题。
#include <bits/stdc++.h>
using namespace std;
int main(){
int N,X,Y,Z;
cin>>N>>X>>Y>>Z;
if((X<=Z && Z<=Y) || (Y<=Z && Z<=X))
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
return 0;
}
没什么好说的。看代码吧。
#include <bits/stdc++.h>
using namespace std;
int main(){
string S,T;
cin>>S>>T;
int j=0;
for(int i=0;i<T.size();i++){
if(j<S.size() && T[i]==S