https://www.codechef.com/problems/PAWRI
i have been stuck for a while now
coding blocks ide is not working !!
#include
#include
using namespace std;
int main() {
int t;
cin >> t;
while (t–)
{
string s;
cin >> s;
while (s.find("party") < s.length())
{
int k = s.find("party");
s.replace(k, 5, "pawri");
}
cout << s << endl;
}
}