use " return (a/gcd(a,b)*b instead " On Sun, Jun 24, 2012 at 7:10 PM, Sourabh Singh <singhsourab...@gmail.com>wrote:
> please suggest something : > > Problem : > http://www.spoj.pl/problems/EASYMATH/ > > C++ code : > http://ideone.com/r2OSb > was getting wrong ans due to over flow i think in LCM() for big prime's i > guess. > thin tried in python . > > Now getting NZEC for python code which mean's high level or recurrsion > some where preventing > normal termination . > but where ?? > > Python code: > http://ideone.com/KDPPJ > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.