Re: [gcj] Runtime Error(RE) in codeJam 2020 Vestigium problem

2020-04-22 Thread kamujula srikar
Thanks paul you are right . On Wed, 8 Apr, 2020, 03:31 Paul Smith, wrote: > I think for Java solutions the class must be called Solution. > Paul Smith > > p...@pollyandpaul.co.uk > > > On Tue, 7 Apr 2020 at 01:59, kamujula srikar > wrote: > >> Guys , I am getting an runtime error when I try t

Re: [gcj] Runtime Error(RE) in codeJam 2020 Vestigium problem

2020-04-07 Thread Paul Smith
I think for Java solutions the class must be called Solution. Paul Smith p...@pollyandpaul.co.uk On Tue, 7 Apr 2020 at 01:59, kamujula srikar wrote: > Guys , I am getting an runtime error when I try to submit the java code so > could you please me in solving this.But, When I try to execute on

[gcj] Runtime Error in problem "ESAb ATAd" in CodeJam2020

2020-04-07 Thread Sapna Tomar
Hi! I'm not very experienced at interactive problems. Below is the code for Codejam's 4th problem "ESAb ATAd". It passes the test set 1 but give *RE* for Test set 2. Can anyone please point out what is causing the Runtime error here? #include using namespace std; vector parity, value; int t,

[gcj] Runtime Error(RE) in codeJam 2020 Vestigium problem

2020-04-06 Thread kamujula srikar
Guys , I am getting an runtime error when I try to submit the java code so could you please me in solving this.But, When I try to execute on codechef java ide works fine .Please help me. Thanls inadvance here's the code: /* package codechef; // don't place package name! */ import java.util.*; i

[gcj] Runtime error with ruby

2020-01-13 Thread Ivan Danci
I tried "File.readlines", "ARGF.readlines" and "gets". All of them raise runtime errors when submitting solution. Can someone advice how to properly read the input in practice mode? I'm trying to solve Foregone Solution https://codingcompetitions.withgoogle.com/codejam/round/00051705/000

[gcj] Runtime error in submission of program in codejam

2019-05-13 Thread Shobhit Srivastava
I made a program in java at my local pc compiler. It ran successfully ,but when i m trying to upload this same program on codejam compiler it is showing runtime error . Can someone help me out with this please. My code is: import java.util.*; import java.io.*; class not_4 { public void ma

[gcj] Runtime Error in Golf Gophers

2019-04-15 Thread nanored . mc
Hello, I wrote a code that. When i tested it it did not work because of a runtime error. But by removing a modulo M the code works well. I don't really understand why. Does someone have an idea ? #include #include us

Re: [gcj] Runtime error

2019-04-08 Thread Amir hossein Shahriari
Suppose that the message starts like A... then your factor function will return pairs in which the second part is not initialized and leads to a runtime error. Now consider 2 messages: one that starts with ABABABA... and another that starts with BABABA... in both cases multiple numbers at the b

[gcj] Runtime Error: Test Set Skipped

2019-04-07 Thread Nicholas Tung
YES! I have this exact same issue. It works on my computer and the testing mode for all solutions. I even wrote a quick program to generate new ciphertexts to break. When I read the analysis after the round ended, I did the exact same thing that the solution did (finding prime common factors) -

[gcj] Runtime error

2019-04-07 Thread thierry njike
hello, is anybody here who codes in C++ please? i've also got a Runtime error for the cryptopangan problem even if i got the same output with the sample test. that's my code below: #include #include #include #include using namespace std; pair factor(int n); int main() { int T, N,

Re: [gcj] Runtime Error: Test Set Skipped

2019-04-07 Thread Eric Yoder
I had the same problem, then realized my code divided by zero with some inputs. I'd guess yours does the same. On Sun, Apr 7, 2019, 09:27 Akash Bobba wrote: > This is regarding the third problem: Cryptopangrams. I'm using Java and > got a functioning solution that works on my local and on the te

Re: [gcj] Runtime Error while uploading solution for the Cryptopangrams problem. Codejam 2019 Qualification R

2019-04-07 Thread Priyansh Sultania
This was what i did T=int(input()) l3=[] #to get primee no. l5=[] #to get final output s="" for i in range (0,T): l1=input().split(" ") l2=input().split(" ") n=int(l1[0]) l=int(l1[1]) for j in range (2,n): if(int(l2[0])%j==0): f1=j

Re: [gcj] Runtime Error while uploading solution for the Cryptopangrams problem. Codejam 2019 Qualification R

2019-04-07 Thread F S
On Sunday, April 7, 2019 at 6:08:10 PM UTC+2, /dev/joe wrote: > It is possible when the message starts something like ABA for the first two > values to be the same. In this case, you get gcd = values[0] instead of the > prime shared between the first two values, and this wrong calculation leads

[gcj] Runtime error in Cryptopanagram

2019-04-07 Thread ACTECH
After testing with many cases and successfully passing all the sample cases, Why the code gives Runtime error while making a submission? Is there any special case included Which I might have forgot to evalutate(Though I have tried every possible combination) which can lead to RE? If required I wil

Re: [gcj] Runtime Error: Test Set Skipped

2019-04-07 Thread Dmitry Kuzminov
I had the same problem, but it had happened to be division by zero. The Cryptopangrams problem has corner cases, try to identify them. On Sun, Apr 7, 2019 at 9:27 AM Akash Bobba wrote: > This is regarding the third problem: Cryptopangrams. I'm using Java and > got a functioning solution that wor

Re: [gcj] Runtime Error while uploading solution for the Cryptopangrams problem. Codejam 2019 Qualification R

2019-04-07 Thread alpha511
I have a similar issue. My code runs perfectly on the visible test cases and it passes. It does not pass for the hidden test cases and gives an RE. I am unable to figure out the mistake. Any ideas? My code - def gcd(a,b): while(b): a, b = b, a%b return a t = int(

Re: [gcj] Runtime Error while uploading solution for the Cryptopangrams problem. Codejam 2019 Qualification R

2019-04-07 Thread Dahlia Ramm
Youre not quite correct /dev/joe... leads to some of your later numbers being fractions > This can never happen! ALL the values are products of 2 primes, and the GCD used is one of that 2 primes, so there NEVER EVER can be a fraction. The problem is this line: for j in values[1:len(values)]:

[gcj] Runtime error not visible but program running fine on test cases

2019-04-07 Thread Avi Agrawal
In one of the problems, the program is showing right output at both my system and test input but showing runtime error on submit attempt. I checked thoroughly but cant find issue. -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscr

[gcj] Runtime Error 2019

2019-04-07 Thread Ademola Arigbabuwo
Can anyone please help me sort this runtime error out. It runs perfectly on my system but codingjam gives back RE import sys .stdout.flush() T = int(input()) lydia = 'EESSSESE' for case in range(1, T+1): N = int(input()) maze = 2*N - 2 diff = len(lydia) - maze if diff >= 0:

Re: [gcj] Runtime Error while uploading solution for the Cryptopangrams problem. Codejam 2019 Qualification R

2019-04-07 Thread Joseph DeVincentis
It is possible when the message starts something like ABA for the first two values to be the same. In this case, you get gcd = values[0] instead of the prime shared between the first two values, and this wrong calculation leads to some of your later numbers being fractions, which probably leads to

[gcj] Runtime Error: Test Set Skipped

2019-04-07 Thread Akash Bobba
This is regarding the third problem: Cryptopangrams. I'm using Java and got a functioning solution that works on my local and on the test case mode within the Code Jam platform. Under test mode, I get the expected result and the green Completed indication. However, when I attempt to run the code

[gcj] Runtime Error while uploading solution for the Cryptopangrams problem. Codejam 2019 Qualification R

2019-04-07 Thread zombiepunkman
I am unable to debug the runtime error in this solution to Cryptopangrams problem. Please help. def gcd(a,b): for i in range(min(a,b),0,-1): if(a % i == 0 and b % i == 0): return i if __name__=='__main__': alphabets = "ABCDEFGHIJKLMNOPQRS

Re: [gcj] Runtime error

2019-02-22 Thread Isaac Owomugisha
I was also getting this error. When I added a new line to the end of the input data,it worked.You could try that. -- 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

Re: [gcj] Runtime error

2019-02-21 Thread 'Pablo Heiber' via Google Code Jam
Which problem of which contest are you trying? If you can post a link to the page you are using to submit, even better, I'll look up your attempts. Just in case, make sure you are submitting choosing the right language. If you choose the wrong language is likely that you'll get a compile error (fo

Re: [gcj] Runtime error

2019-02-21 Thread Guessing
@Pablo this is exactly what I mean, even with a very simple program that just prints out a line I get run time error or compilation error (it's not even the same error when I retry) On Wednesday, February 20, 2019 at 2:00:52 AM UTC+1, Pablo Heiber wrote: > Hi,  > > > As I've answered before on

Re: [gcj] Runtime error

2019-02-19 Thread 'Pablo Heiber' via Google Code Jam
Hi, As I've answered before on this mailing list, there are multiple reasons why a submission could fail. If you think you are getting the wrong result due to a system problem, we'll investigate it, but we've done that lots of times, and it was a user error every time. Moreover, if we find that it

Re: [gcj] Runtime error

2019-02-19 Thread aabhas chawla
What language are you using. Also, make sure the libraries used are supported. On Sat, Feb 16, 2019 at 4:43 AM Shafaq Arshad wrote: > Hi I am trying to submit my code but it keeps saying Run time error even > though it works fine on my console... > > print("Case #{}: {}".format(i, err))#output >

Re: [gcj] Runtime error

2019-02-19 Thread shiran
Yeah, this is exactly what I tried contacting google about. Even if I remove all code and and just print something I get runtime error. All google did was reply to me that they are busy with the upcoming competition and don't have time to answer anything regarding past competitions. I tried explain

[gcj] Runtime error

2019-02-16 Thread Shafaq Arshad
Hi I am trying to submit my code but it keeps saying Run time error even though it works fine on my console... print("Case #{}: {}".format(i, err))#output t = int(input()) # read a line with a single integer -- You received this message because you are subscribed to the Google Groups "Google

Re: [gcj] Runtime Error problem about input and output

2019-02-14 Thread aabhas chawla
Can you share your code. For java, class name has to be Solution and needs to be public. Also, verify package dependency. On Thu, Feb 14, 2019 at 8:58 AM Ayyuce Demirbas wrote: > On Wednesday, February 13, 2019 at 7:52:24 PM UTC+3, Bartholomew Furrow > wrote: > > Nah, that's Java, and you can do

Re: [gcj] Runtime Error problem about input and output

2019-02-14 Thread Ayyuce Demirbas
On Wednesday, February 13, 2019 at 7:52:24 PM UTC+3, Bartholomew Furrow wrote: > Nah, that's Java, and you can do that. Ayyuce, what happens if you compile > and run your code on your own machine, using the sample data as input? If you > get a crash there, you should get a stack trace. It works

Re: [gcj] Runtime Error problem about input and output

2019-02-14 Thread aabhas chawla
Runtime error sometimes mean there is an issue with code and exception is being thrown. If it was output issue, then you would have got wrong answer as result. On Wed, Feb 13, 2019 at 9:23 AM Ayyuce Demirbas wrote: > Hello, > > > I am trying to submit my solution but I get a runtime error. I thi

Re: [gcj] Runtime Error problem about input and output

2019-02-13 Thread Luke Pebody
Yeah I used it once 11 years ago. Some aspects of the syntax might have been forgotten. I use C# for work and I know their syntaces are somewhat similar. Don't know the differences. On Wed, 13 Feb 2019, 11:56 am Bartholomew Furrow Luke, you've just made me go through go-hero.net/jam to see wheth

Re: [gcj] Runtime Error problem about input and output

2019-02-13 Thread Bartholomew Furrow
Luke, you've just made me go through go-hero.net/jam to see whether you ever used Java before. Apparently you used it for Round 1A's problem B in 2008, and apparently not since then. I guess the dozens of languages you used in between provide *some* excuse for not remembering. On Wed, Feb 13, 2019

Re: [gcj] Runtime Error problem about input and output

2019-02-13 Thread Bartholomew Furrow
Nah, that's Java, and you can do that. Ayyuce, what happens if you compile and run your code on your own machine, using the sample data as input? If you get a crash there, you should get a stack trace. -- You received this message because you are subscribed to the Google Groups "Google Code Jam"

Re: [gcj] Runtime Error problem about input and output

2019-02-13 Thread Luke Pebody
Guessing the error is in the out: you are adding a string to an integer. This works in JavaScript but not in most languages. Which language are you using? On Wed, 13 Feb 2019, 11:23 am Ayyuce Demirbas Hello, > > > I am trying to submit my solution but I get a runtime error. I think the > problem

[gcj] Runtime Error problem about input and output

2019-02-13 Thread Ayyuce Demirbas
Hello, I am trying to submit my solution but I get a runtime error. I think the problem is about input and output. I use these ways to receive inputs and write outputs //For inputs Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); //For outputs System.out

[gcj] Runtime Error in A Whole new word

2018-05-12 Thread tarunkhullar26
I implemented the solution with backtracking, but it got runtime error. Can anyone please guide me on what's wrong with it ?: #include #define rep(i, a, b) for(int i=a; ib; i--) #define db(x) (cerr << #x << ": " << x << '\n') #define sync ios_base::sync_with_stdio(false), cin.tie(NULL) //#define

Re: [gcj] Runtime Error in C++. Solved.

2018-04-26 Thread 'Pablo Heiber' via Google Code Jam
Hi, Thanks for the ideas. I'll pass them on to our UI team. Best, Pablo On Wed, Apr 25, 2018 at 7:43 PM Bartholomew Furrow wrote: > Pablo, > > When you select Java as your programming language, there's some text to > explain important requirements to the user. It's at the end of the page > any

Re: [gcj] Runtime Error in C++. Solved.

2018-04-25 Thread Bartholomew Furrow
Pablo, When you select Java as your programming language, there's some text to explain important requirements to the user. It's at the end of the page anyway; why not explore ways to use the space? Some things that could go there: - An example program in the selected language that solves a simple

Re: [gcj] Runtime Error in C++. Solved.

2018-04-25 Thread 'Pablo Heiber' via Google Code Jam
Hi Anil, That's a fair point about giving the extra information. We don't add that level of detail to the terms and conditions, but I've added a formal definition of Runtime Error to our FAQ . Hope this helps the next time. Best,

Re: [gcj] Runtime Error in C++. Solved.

2018-04-24 Thread eatmore
On Monday, 23 April 2018 18:04:11 UTC+3, Pablo Heiber wrote: > $ echo "int main() { throw; }" > test.cpp && g++ test.cpp && ./test; echo $? > terminate called without an active exception > Aborted > 134 In this case, the program didn't exit with nonzero exit code. In fact, it terminated with SIG

Re: [gcj] Runtime Error in C++. Solved.

2018-04-24 Thread Anil M
I did understand the fact that your systems use exit code to determine whether a program ended successfully or not. Little heads up on terms and conditions would have been nice. I got 10 penalties, had no tools to determine why there was a runtime error. Luckily I knew few other languages, so c

Re: [gcj] Runtime Error in C++. Solved.

2018-04-23 Thread 'Pablo Heiber' via Google Code Jam
Hi, The way to check if a binary finished successfully is simply to check if the exit code is 0. Notice that for C/C++ in particular there is a constant EXIT_SUCCESS defined as 0, and an EXIT_FAILURE defined to 1. Our system (or any system, for that matter) has no way to determine *why* your progr

Re: [gcj] Runtime Error in C++. Solved.

2018-04-22 Thread Anil M
Does my post look like I was asking a question? or Sarcasm lost its charm. In fact I asked a question a week ago with this problem, it was put on hold because Round 1 is still in progress. Thank you for your valuable Input! On Sunday, April 22, 2018 at 3:45:02 AM UTC+5:30, Bartholomew Furrow

Re: [gcj] Runtime Error in C++. Solved.

2018-04-21 Thread Bartholomew Furrow
Anil, The problem is that you've put a line into your program that says "Stop executing and tell the executing process that there was an error." I understand that you weren't aware that that's what the line does, but that's what "return 1;" in your main() function means. Some possible changes you

Re: [gcj] Runtime Error in C++. Solved.

2018-04-21 Thread Anil M
Google code jam is testing my coding skills or my common knowledge? On Sunday, April 22, 2018, Anil M wrote: > The program that returns one runs pretty well on my computer, i don’t > rewrite my main function every time , I just copy paste, I submit the code > I get a runtime error, why would I

Re: [gcj] Runtime Error in C++. Solved.

2018-04-21 Thread Anil M
The program that returns one runs pretty well on my computer, i don’t rewrite my main function every time , I just copy paste, I submit the code I get a runtime error, why would I think it is because of returning one? I’m wasted so much time thinking something is wrong with my code. I don’t have

[gcj] Runtime Error in C++. Solved.

2018-04-21 Thread Anil M
your solution will result in runtime error if you return 1 in main function irrespective of correctness of the solution. I wasted so much time because of this, I didn't think that would matter, I think this would help anyone who is facing similar problem. #include using namespace std; int mai

[gcj] Runtime Error on Sandwich (DCJ)

2015-06-12 Thread Leopoldo Taravilse
Hi everyone! I'm getting runtime error on my code for problem sandwich and I cannot test it on my local machine as I didn't figure out how to make the tester work on Windows 8 Here's my code, if anyone can tell me why is it giving me runtime error I'd appreciate it. I tried everything and it stil