Hi Saravana, You're correct that Anusha's response wasn't in C#. If you look at my earlier response, you'll see some suggestions for how you can figure out your bug. I've pasted it here for your convenience:
Run Time Error means your program is crashing. The first thing I'd try, if I were you, is running your program on some inputs that are valid for the second test set but not the first. In particular, I'd start with the largest possible input (10^16), and then try several other large inputs. Often programs that work on small numbers, like 100000, have problems on larger numbers -- they might use too much memory (run time error), or do too much recursion (run time error), or take too long (time limit exceeded), or overflow a data type (numbers at or above 2^31 don't fit in most 32-bit integer types, which could cause a variety of problems). Best, Bartholomew On Tue, Sep 17, 2019 at 10:59 AM Saravana Kumaran <[email protected]> wrote: > Hi > > You have provided in c++ but can anyone say in c# and also why I am > getting this error based on my answer? > > I have now attached the code fole I did in c# > > Thanks and Regards, > Saravana kumaran N. > > On Wed, 11 Sep 2019, 9:04 pm Bartholomew Furrow, <[email protected]> wrote: > >> Run Time Error means your program is crashing. The first thing I'd try, >> if I were you, is running your program on some inputs that are valid for >> the second test set but not the first. In particular, I'd start with the >> largest possible input (10^16), and then try several other large inputs. >> >> Often programs that work on small numbers, like 100000, have problems on >> larger numbers -- they might use too much memory (run time error), or do >> too much recursion (run time error), or take too long (time limit >> exceeded), or overflow a data type (numbers at or above 2^31 don't fit in >> most 32-bit integer types, which could cause a variety of problems). >> >> Good luck! >> Bartholomew >> >> On Wed, Sep 11, 2019 at 8:16 AM Saravana Kumaran <[email protected]> >> wrote: >> >>> I am Practising Round A - Kick Start 2018 Even digit Problem and when I >>> submit my code I am getting Test Set Passed and Run Time Error(RE). >>> >>> >>> Can anyone Help me why i am getting RE?? >>> >>> >>> Thanks and Regards, >>> Saravana kumaran N. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Google Code Jam" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/google-code/d1d8b366-a3e1-4e9e-9e58-498651692ed1%40googlegroups.com >>> <https://groups.google.com/d/msgid/google-code/d1d8b366-a3e1-4e9e-9e58-498651692ed1%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Code Jam" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-code/CAHaiWHOv9Yh-GJoWyxYQKt8_NwP717Es1HOTgRf7y%2BsyBqrVeA%40mail.gmail.com >> <https://groups.google.com/d/msgid/google-code/CAHaiWHOv9Yh-GJoWyxYQKt8_NwP717Es1HOTgRf7y%2BsyBqrVeA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-code/CAGSRCg6iRCijXTee5KdWPYof7fpN9UHQ0rwfic1uv3uk3ci_bw%40mail.gmail.com > <https://groups.google.com/d/msgid/google-code/CAGSRCg6iRCijXTee5KdWPYof7fpN9UHQ0rwfic1uv3uk3ci_bw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/CAHaiWHPEQ5YHEdrh1ASwaDJfAgRbSSi91gNgK9r9XhjJ7tskqQ%40mail.gmail.com.
