1 solutions

  • 0
    @ 2024-12-5 21:45:01
    #include<bits/stdc++.h>
    using namespace std;
    string arr;
    string brr; 
    int main()
    {
    	arr="momo";
    	int x,y;
    	cin>>x>>y;
    	while(arr.size()<y)
    	{
    		brr+="o";
    		arr=arr+brr+"m"+arr;
    	}
    	for(int i=x-1;i<y;i++)
    	{
    		cout<<arr[i];
    	}
    }
    
    

    Information

    ID
    7000
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    8
    Tags
    (None)
    # Submissions
    27
    Accepted
    5
    Uploaded By