dont post codes, ask whether your algorithm is correct or not. On Sun, Jun 24, 2012 at 8:29 PM, Hassan Monfared <[email protected]>wrote:
> use " return (a/gcd(a,b)*b instead " > > > On Sun, Jun 24, 2012 at 7:10 PM, Sourabh Singh > <[email protected]>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 [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
