Vote count

Discuss about the puzzles, but without giving the solutions please !!!

Re: Vote count

Postby admin » Mon Jul 04, 2011 10:44 pm

The expected result is 43.75, not 43.76

It seems that your submission differs from the exact response by 0.01%.
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: Vote count

Postby XiR_ » Tue Jul 05, 2011 3:18 am

p is the number of vote bags. Does always follows p lines or there could be more than p?

thanks
User avatar
XiR_
 
Posts: 2
Joined: Sun May 22, 2011 7:27 am

Re: Vote count

Postby admin » Tue Jul 05, 2011 8:29 am

There could be more than p, but only the p lines which follows matter.
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: Vote count

Postby lionelb » Tue Jul 05, 2011 4:17 pm

Why isn't the chocolate being outputted in the sample?
User avatar
lionelb
 
Posts: 3
Joined: Thu Feb 03, 2011 9:17 am

Re: Vote count

Postby admin » Tue Jul 05, 2011 4:23 pm

From the puzzle output section: "All valid options having the same maximum number of votes should be displayed in alphabetical order followed by the percentage of votes received."

The chocolate only received 10 votes, compared to tea which both received 35.
So the chocolate definitely didn't reach the maximum number of votes.

Hope it clarifies
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: Vote count

Postby avD.ZeeK » Wed Jul 06, 2011 7:53 pm

Hi admin,

I tried to submit my solution, seems all the testcases passes except the 2nd one. Is it fair to ask why [:)]
Solution#30898
(Any hint on wats wrong with the code.... )

ZeeK
User avatar
avD.ZeeK
 
Posts: 5
Joined: Fri May 20, 2011 6:04 pm

Re: Vote count

Postby admin » Wed Jul 06, 2011 10:40 pm

@Zeek
If there are more than p bags, do you read them all or just the first p ?
That could be the problem.
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: Vote count

Postby sridhar » Mon Jul 18, 2011 2:02 am

Hi,

It would be nice if you post the number of characters used by each submission.

May be 2 - 3months later of the coder agrees make the code available to public so they can improve there coding

thanks
User avatar
sridhar
 
Posts: 9
Joined: Thu Apr 07, 2011 4:59 am

Re: Vote count

Postby David Berthelot » Mon Jul 18, 2011 5:29 pm

@shridar
You can already determine it.
The column result is computed as (that's explained in the scoring section of the puzzle btw):
Code: Select all
2000 - #(number of characters)
User avatar
David Berthelot
 
Posts: 43
Joined: Sun Jan 16, 2011 5:06 pm

Vote count

Postby najmuzzaman » Fri Jul 22, 2011 10:45 pm

I code is ERROR(cpu_exceeded): Time limit exceeded

But i am sure my code can get the solution less than 1s.


i am new user in codarcharts.

may i am don't know how the solution submit here.
@admin plz help me.
User avatar
najmuzzaman
 
Posts: 1
Joined: Tue Jan 18, 2011 3:01 am

PreviousNext

Return to Puzzles

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron