View Code of Problem 3832

#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main(void){
	string a,b;
	while(cin>>a>>b){
		int pos=a.find(b);
		if(pos!=-1) pos++;
		cout<<pos<<endl;
	}
}

Double click to view unformatted code.


Back to problem 3832