| 83 | } |
| 84 | |
| 85 | int main(){ |
| 86 | scanf(" %s %lld", S, &K); |
| 87 | N = (int) strlen(S); |
| 88 | |
| 89 | init(); |
| 90 | for(int i = 0; i < N; i++) |
| 91 | extend(S[i]); |
| 92 | update_cnts(); |
| 93 | calc(); |
| 94 | |
| 95 | dfs(0, K-1); |
| 96 | int M = (int) ans.size(); |
| 97 | for(int i = 0; i < M; i++) |
| 98 | printf("%c", ans[i]); |
| 99 | printf("\n"); |
| 100 | } |
nothing calls this directly
no test coverage detected