![]() |
||||||||||
|
||||||||||
The most binary substringTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 30000/10000 K (Java/Others)Total Submission(s): 1591 Accepted Submission(s): 345 Problem Description Everybody knows the number is saved with the binary string in the computer. Now, their have N (1 <= N <= 1000) binary strings I tell you, your task is tell me what is the most binary substring with K (1 <= K <= L) characters in the strings I give you. The length of each string is L (1 <= L <= 60). Output times of the most appearing binary substring. Input Each line will contain three numbers N, L, K. Following N lines, represent N binary strings. Output One answer one line. Sample Input
Sample Output
Hint In first case, the most sequence is 101, it appears 4 times. In second case, the most sequence is 1010 or 0101, they all just appear 2 times. Author 威士忌 Source | ||||||||||
|