[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, Barthol

[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 Picasso - "Computers are useless. They can only give you answers." On Mon, Sep 7, 2009 at 9:20 AM, Bartholomew Furrow wrote:

[gcj] Re: Query

2009-09-06 Thread Andriy G. Tereshchenko
Dhruva Sagar, In order to get better understanding on scale of problem - take a look on partial list of "similar" source codes at: http://g.odessa.ua/topcoder/SimilarGCJ2009_Q.html -- TAG On Mon, Sep 7, 2009 at 7:35 AM, Dhruva Sagar wrote: > Hi Bartholomew, > Thanks for your reply. I will be

[gcj] Re: Query

2009-09-06 Thread Dhruva Sagar
Hi Andriy, I am unable to open that link. Thanks & Regards, Dhruva Sagar. Samuel Goldwyn - "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 wrote

[gcj] Re: Query

2009-09-06 Thread zoom
yeah same here.. On Sep 7, 10:27 am, Dhruva Sagar wrote: > Hi Andriy, > I am unable to open that link. > > Thanks & Regards, > Dhruva Sagar. > > Samuel > Goldwyn > - "I'm willing to admit that I may not always be right, but I am n

[gcj] Re: Query

2009-09-06 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 wrote: > > yeah same here.. > > On Sep 7, 10

[gcj] Re: Query

2009-09-07 Thread santosh kumar
But i guess some of them would be mere coincidences, coz only a very few possible solutions for each of these problems. On Sep 7, 11:24 am, Carlos Guia wrote: > 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

[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 On

[gcj] Re: query

2010-06-21 Thread sjbr
is a signed number that identifies an object and is defined in Object class , is used with hash based collections like HashSet. The java documentation gives the contract that you must follow if you override this method: http://java.sun.com/javase/6/docs/api/java/lang/Object.html#hashCode() On 16

[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 wrote: > Two object which are equal will have equal hashcodes, but two objects > with equal hashcodes aren't necessarily equal. > > Paul Smith > > p...@pollyandpaul.co.

[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 >

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 s

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 objec

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 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 until you find > it?

[gcj] Re: query on qualification round

2009-09-02 Thread bajrang kumar
hey dear, you have to solve 1 out of 3 questions for qualifying round.if u have solved this ,then u can attempt another ,but not necessary,perhaps. On 9/2/09, Hirumani wrote: > > hi all.. > do we need to solve only 1 out of 3 questions in qualification > round? > > > > --~--~-~--~-

[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 wrote: > > hi all.. >do we need to solve only 1 out of 3 questions in qualification > round? > > > > --~--~-~--~~~---~--~~ You received this message because

[gcj] Re: query on qualification round

2009-09-02 Thread Anurag Dongre
ok what exactly does 1 LARGE and 1 SMALL mean? does it mean 1 large and 1 small for the same question or it means 1 large from any of the three and 1 small from any of the three.? On 9/2/09, Himanshu Sachdeva wrote: > > atleast 1 small and 1 large input > Cheers! > Himanshu Sachdeva > > > On Wed,

[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 wrote: > atleast 1 small and 1 large

[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 wrote: > > You need at least 1 small and 1 large, but if can solve m

[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 case

[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 kno

[gcj] Re: query on qualification round

2009-09-02 Thread Tim MacDonald
Any small, and any large. (It would be unusual to have the large correct without having the small from that same question, however) On Wed, Sep 2, 2009 at 2:13 PM, Anurag Dongre wrote: > YEAH i understand its a gamble but is it that smal and large of same > question should be correct in order to

[gcj] Re: query on qualification round

2009-09-02 Thread Hirumani
Thanks Himanshu & bajrang.. On Sep 2, 9:42 pm, bajrang kumar wrote: > hey dear, > you have to solve 1 out of 3 questions for qualifying round.if u have > solved this ,then u can attempt another ,but not necessary,perhaps. > > On 9/2/09, Hirumani wrote: > > > > > hi all.. > >     do we need to s

[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 clea

[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 wrote: > YEAH i understand its a gamble

[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 > YEAH i understand its a gamble but is it that smal and large of same >

[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. 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 execute... > > 2009/9

[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-03 Thread Himanshu Sachdeva
Grant, Ziv:the issue that was being discussed in this thread is whether you can solve small and large inputs for different problems and qualify OR you have you solve small and large for the same problem. its right that if it works for large input, it'll work for small input. but you dont know the r

[gcj] Re: query on qualification round

2009-09-03 Thread Carlos Guia
> > its right that if it works for large input, it'll work for small input. but > you dont know the result for large input untill the round is over. > Yes, but you do know if it is wrong for the small, and if it is wrong for the small then you can be almost positive the large is wrong as well. Ca

[gcj] Re: query about qualification round..

2009-09-11 Thread Dhruva Sagar
No Thanks & Regards, Dhruva Sagar. Joan Crawford - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend." On Fri, Sep 11, 2009 at 10:12 PM, harshit shah wrote: > > Hi > Out of 3 sub round if i will only attempt

[gcj] Re: Query regarding Problem Statement

2010-04-08 Thread Saptarshi Chaudhuri
try searching for the Google codejam older problems.but i guess you are probably aware of those by now. For language,try to read the FAQs On Apr 8, 11:31 am, Manan wrote: > Hello friends > I want to know what kind of problem statement we have to solve and by > which language? > And also how can I

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

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

[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 y

[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 wrote: > in java code... how to access the input .in files and do we need to > send the entire project folder if i do the java coding in > n

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

2009-09-01 Thread Udhaya kumar
Hi Alex, Thanks for your reply [?] Udhay On Tue, Sep 1, 2009 at 5:23 PM, SkidanovAlex wrote: > > 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 wrote: > > in java code...

[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 "goog

[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 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 wrote: > > > > > > > > > Hello everyone > >