[gcj] Re: Query

2017-03-27 Thread Xiongqi ZHANG
The best way to read input and save output to file is use I/O redirects. Basically you just read input from stdin and print the output to stdout and log your debug info to stderr. --- After you downloaded the input file and saved as input.in, you can run your program using ./myapp < input.in

[gcj] Re: QUERY: How to check the outputs for practice probems?

2011-04-24 Thread monish001
Hey thanks Ravi. It is working upto the mark in firefox. Monish On Apr 24, 1:23 am, ravi shanker ravishanker@gmail.com wrote: Hi, just wait for some time or try with some other browser u will get the response back. On Sat, Apr 23, 2011 at 10:15 PM, monish gupta

Re: [gcj] Re: query

2010-06-23 Thread Paul Smith
It's all about fast lookup. Take any object, how do you look for that object in a container? Go through the container and check each object one by one until you find it? Holy O(n) lookup batman! Much better would be to sort the objects somehow and at least do binary search. However, some

Re: [gcj] Re: query

2010-06-23 Thread Rajesh Nair
Paul, That was a very good description! Regards, Rajesh Nair On Wed, Jun 23, 2010 at 2:12 PM, Paul Smith p...@pollyandpaul.co.uk wrote: It's all about fast lookup. Take any object, how do you look for that object in a container? Go through the container and check each object one by one

[gcj] Re: query

2010-06-22 Thread nataraj subramanian
So hashcodes are used to prevent creation of duplicate objects? It's a memory conservation thing? On Jun 21, 6:50 pm, Paul Smith p...@pollyandpaul.co.uk wrote: Two object which are equal will have equal hashcodes, but two objects with equal hashcodes aren't necessarily equal. Paul Smith

Re: [gcj] Re: query

2010-06-22 Thread Rajesh Nair
Nataraj, The hashcode method provides a hash of the object which is primarily used in hash based containers like HashSet and HashMap. I do not believe it has anything to do with memory conservation or creation of duplicate objects. Regards, Rajesh Nair On Wed, Jun 23, 2010 at 9:24 AM, nataraj

[gcj] Re: Query

2009-09-07 Thread Carlos Guia
What a huge list. This is really a shame, the GCJ team tries to put a nice contest out and now has to spend so much time filtering this kind of childish behavior. Hope you succeed in catching them all, Carlos Guía On Mon, Sep 7, 2009 at 1:07 AM, zoom zoom.a...@gmail.com wrote: yeah same

[gcj] Re: Query

2009-09-07 Thread Carlos Guia
If you compare those source files you will easily realize it isn't coincidence, the solutions of many people are probably very similar, but in that list variable names, order of apparition, class and file names and stuff like that are all the same, and that is hardly a coincidence. Carlos Guía

[gcj] Re: Query

2009-09-06 Thread Bartholomew Furrow
We'll have to ask for your patience here -- we're working our way through a large number of cheating claims. Plus it's a weekend, so a lot of the team is recovering from a very hectic week. :-) Rest assured that if you have 33 points (and didn't cheat, of course), you qualified. Regards,

[gcj] Re: Query

2009-09-06 Thread Dhruva Sagar
Hi Bartholomew, Thanks for your reply. I will be more patient :). Thanks Regards, Dhruva Sagar. Pablo Picassohttp://www.brainyquote.com/quotes/authors/p/pablo_picasso.html - Computers are useless. They can only give you answers. On Mon, Sep 7, 2009 at 9:20 AM, Bartholomew Furrow

[gcj] Re: Query

2009-09-06 Thread Dhruva Sagar
Hi Andriy, I am unable to open that link. Thanks Regards, Dhruva Sagar. Samuel Goldwynhttp://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html - I'm willing to admit that I may not always be right, but I am never wrong. On Mon, Sep 7, 2009 at 10:52 AM, Andriy G. Tereshchenko

[gcj] Re: Query

2009-09-06 Thread zoom
yeah same here.. On Sep 7, 10:27 am, Dhruva Sagar dhruva.sa...@gmail.com wrote: Hi Andriy, I am unable to open that link. Thanks Regards, Dhruva Sagar. Samuel Goldwynhttp://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html - I'm willing to admit that I may not always be right,

[gcj] Re: query on qualification round

2009-09-03 Thread Himanshu Sachdeva
as the rules state:If you successfully solve one small and one large input from any of the three problems, you will advance to Online Round 1. what i get from this line is that the small and large input should be of the same problem. but if somebody from GCJ organizing team can confirm, it'll be

[gcj] Re: query on qualification round

2009-09-02 Thread Himanshu Sachdeva
atleast 1 small and 1 large input Cheers! Himanshu Sachdeva On Wed, Sep 2, 2009 at 1:06 PM, Hirumani hirumani.n...@gmail.com wrote: hi all.. do we need to solve only 1 out of 3 questions in qualification round? --~--~-~--~~~---~--~~ You received this

[gcj] Re: query on qualification round

2009-09-02 Thread Carlos Guia
You need at least 1 small and 1 large, but if can solve more try to do it, you won't know if the large is correct until qualification ends, so it's a gamble to solve only 1 and not try the others. Carlos Guía On Wed, Sep 2, 2009 at 11:55 AM, Himanshu Sachdeva sachdev...@gmail.comwrote: atleast

[gcj] Re: query on qualification round

2009-09-02 Thread Anurag Dongre
YEAH i understand its a gamble but is it that smal and large of same question should be correct in order to advance to round 1 or 1 small of any thrree questions and 1 large of any three questions would do On 9/2/09, Carlos Guia zyx3d...@gmail.com wrote: You need at least 1 small and 1 large,

[gcj] Re: query on qualification round

2009-09-02 Thread vexorian
Just notice that after you submit a large output, the site will not tell you whether it is right or not. The official result about the correctness of your large output won't be available until the qualification round ends. So, it is probably a good idea to try to solve the 3 questions just in

[gcj] Re: query on qualification round

2009-09-02 Thread Anurag Dongre
YES my dear friends...i will definitely solve all three of them. Definitely. But if i know that i did right in small input for Q1 and m sure all of the other two questions are wrong for small input, and if im sure that i did right in large input for Q3 theni can be relaxed. Basically just wanna

[gcj] Re: query on qualification round

2009-09-02 Thread Ziv W
Well, I think it's assumed that if you're able to solve a large input from one of the questions, then you can solve the small one as well with exactly the same code. (Vice versa is rather less likely to be correct...) If you take a look at a round or two from last year, the concept should be

[gcj] Re: query on qualification round

2009-09-02 Thread Grant Kot
Well, if it works on the large data set it should probably work on the small. I don't see why anyone wouldn't test on the small as if it doesn't work there it sure as heck won't work on the large. Grant Kot On Sep 2, 2009, at 2:13 PM, Anurag Dongre anurag.dongr...@gmail.com wrote: YEAH i

[gcj] Re: query on qualification round

2009-09-02 Thread David M.
Yes and not. It can happen that a program runs ok with the small input file, but the same program fails with the large. It could had problems like an out of memory or needs a lot of time to execute... 2009/9/2 Anurag Dongre anurag.dongr...@gmail.com YEAH i understand its a gamble but is it that

[gcj] Re: query on qualification round

2009-09-02 Thread Anurag Dongre
Thanks a lot guysthat wasnt in my mind.. On 9/3/09, David M. b4r...@gmail.com wrote: Yes and not. It can happen that a program runs ok with the small input file, but the same program fails with the large. It could had problems like an out of memory or needs a lot of time to

[gcj] Re: query regarding opening input files in java

2009-09-01 Thread SkidanovAlex
In order to read from file BufferedReader bf = new BufferedReader( new FileReader ( problem.in ) ); Than you can read one line of input by calling: String s = bf.readLine( ); If string has some tokens, separated by space (for example two integers) use StringTokenizer class. For example if

[gcj] Re: query regarding opening input files in java

2009-09-01 Thread SkidanovAlex
Also some java coders like using Scanner class It is a bit easier than BufferedReader/StringTokenizer, but it is slower as well On Aug 31, 5:54 pm, krrish krishnakanth1...@gmail.com wrote: in java code... how to access the input .in files and do we need to send the entire project folder if i

[gcj] Re: query regarding opening input files in java

2009-09-01 Thread wolf chen
BufferedReader in = new BufferedReader(new FileReader(A-small- practice.in)); BufferedWriter out = new BufferedWriter(new FileWriter(A-small- practice.out)); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[gcj] Re: query regarding opening input files in java

2009-08-31 Thread vivek attri
On 8/31/09, Udhaya kumar udhaya...@gmail.com wrote: Hi All, I too have the below questions... i'm vivek from shimla Udhay... -- Forwarded message -- From: krrish krishnakanth1...@gmail.com Date: Mon, Aug 31, 2009 at 6:24 PM Subject: [gcj] query regarding opening input