Barcode ( Codeforces Round #139 (Div. 2) ) [Time limit exceed ]

Revision en1, by LimuInc, 2015-06-07 14:02:04

first of all , sorry for my bad English . im tring to sovle this problem http://codeforces.com/problemset/problem/225/C here is the idea ive : 1- get some of '#'s in each col 2- make 1D sum array of them (to be able to get number of #s in a given range) 3- then for for each consecutive range of cols with width >=x && <=y make them all of one type (#s or .s) and call the function with alternate type . here is my submission : http://codeforces.com/contest/225/submission/11485488 why getting time limit ? thanks in advance :)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English LimuInc 2015-06-07 14:02:04 614 Initial revision (published)