#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,N*10+1) { if(y==0) i++, y++; tot[x]=i; y+=S[x%N]-'0'-1; } if(K