#include #include #include #include #define REP(i,N) for(int i=0,__i=N;i<__i;++i) long long N,K,Q; std::string S; std::vector A; bool input(){ using namespace std; cin>>N>>K>>Q; if(N>2*pow(10,5)||N<1||Q>2*pow(10,5)||Q<1||K>pow(10,9)||K<1) return false; string s; cin>>s; REP(i,K) S+=s; return true; } bool solve(){ using namespace std; int start,front,back,n; /* int __c=0; cout<<"S:"<>n; if(n<1||n>K*N) return false; n--; //cout<<"n:"<=0); //cout<<"front:"<