F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

The most binary substring

Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 30000/10000 K (Java/Others)
Total Submission(s): 1587    Accepted Submission(s): 343


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
2 6 3 101011 110101 2 6 4 101011 110101
 

Sample Output
4 2
 

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
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-04-27 13:00:36, Gzip enabled