#include using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x>N>>K; cin>>S; i=0; y=0; for(x=1;x<=N*10;x++) { if(y==0) i++, y++; tot[x+1]=i; y+=S[(x-1)%N]-'0'-1; } if(K