#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]; } }
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account