help me with this mo's problem

Revision en1, by tanvir_cse, 2016-08-11 14:48:51

i used mos algo for this problem but got TLE on case 43,38 etc;;; i can't get whats wrong with me,,,i saw a solve my type but i got TLE

problem link : http://codeforces.net/contest/86/problem/D

my code : http://codeforces.net/contest/86/submission/19782537

thanx in advance

Tags mos_algorithm

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English tanvir_cse 2016-08-11 14:48:51 314 Initial revision (published)