View Code of Problem 3832

#include<iostream>
#include<string>

using  namespace std;

int main()
{
    string s1,s2;
    while(cin >> s1){
        cin >> s2;
        int k = s1.find(s2);
        if(k != -1) k++;
        cout << k <<endl;

    }
    return 0;
}

Double click to view unformatted code.


Back to problem 3832