| 69 | } |
| 70 | |
| 71 | int main(){ |
| 72 | scanf(" %s %d", S, &K); |
| 73 | N = (int) strlen(S); |
| 74 | |
| 75 | init(); |
| 76 | for(int i = 0; i < N; i++) |
| 77 | extend(S[i]); |
| 78 | update_cnts(); |
| 79 | |
| 80 | for(int i = 0; i < K; i++){ |
| 81 | scanf(" %s", T); |
| 82 | M = (int) strlen(T); |
| 83 | printf("%d\n", query()); |
| 84 | } |
| 85 | } |
nothing calls this directly
no test coverage detected