Re: [gcj] Foregone Solution, Code running perfectly on system, but getting RE while running a test Case

2020-04-02 Thread joe733
*Code* import re import random def missing_number(k, N): if not (1 < int(N) < 10**100) or '4' not in N: #print() should I uncomment this? return pos = [i.start(0) for i in re.finditer('4', N)] inter_list = [i for i in N] for i in pos: inter_list[i] = str(ran

Re: [gcj] Foregone Solution, Code running perfectly on system, but getting RE while running a test Case

2020-04-01 Thread venkata rajesh thotapalli
Send your code On Wed, Apr 1, 2020, 9:39 PM Nikhil Kumar vats wrote: > Here is the code, > https://pastebin.com/mU2A5pd S > > It is working fine, in my local system but while submitting online in > codejam IDE, I am getting runtime, for even give below set of inpu

Re: [gcj] Foregone Solution, Code running perfectly on system, but getting RE while running a test Case

2020-04-01 Thread Bartholomew Furrow
Rename your class to Solution. On Wed, Apr 1, 2020 at 10:09 AM Nikhil Kumar vats wrote: > Here is the code, > https://pastebin.com/mU2A5pd S > > It is working fine, in my local system but while submitting online in > codejam IDE, I am getting runtime, for even giv

[gcj] Foregone Solution, Code running perfectly on system, but getting RE while running a test Case

2020-04-01 Thread Nikhil Kumar vats
Here is the code, https://pastebin.com/mU2A5pd S It is working fine, in my local system but while submitting online in codejam IDE, I am getting runtime, for even give below set of input, Input: 1 940 Can you please help why its giving RE? -- You received t