Coding/백준

1786번 찾기

labote 2019. 10. 1. 19:06

KMP 알고리즘을 이용해서 풀면 된다.

 

시간 초과 떠서 endl -> '\n'로 바꾸고 cin.tie, cout.tie, sync_with_stdio 함수를 넣었다.