The name formatter

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

The name formatter

Postby admin » Mon Jul 11, 2011 10:51 pm

In pretty much every website, there are forms to fill up your name information. Users don't all capitalize their names consistently, so the website typically formats them while processing the form. The purpose of this puzzle is to format a list of names.



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

Re: The name formatter

Postby dagarwal82 » Fri Jul 22, 2011 10:00 pm

What is wrong with my output ? Verify says following :
Your submission failed to give the exact answer on the verification test. Please verify your code. For reference, you program generated these results:
CLEOPATRA
Aishwarya RAI
John F. KENNEDY
Leonardo da VINCI
Tyler DURDEN
User avatar
dagarwal82
 
Posts: 2
Joined: Sat May 14, 2011 7:12 pm

Re: The name formatter

Postby admin » Sat Jul 23, 2011 8:25 am

Looks ok to me. Could there be trailing spaces or some invisible characters ?
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: The name formatter

Postby Nikshep Mehra » Thu Jul 28, 2011 6:15 am

Similar problem here even though I have passed all test cases , I have a score of 0.

I wanted to know why is this so my submission http://codercharts.com/submission/33087.

If this data is analytic's based then only C , C++ people would score high as they are faster on Linux based machine as compared to a C# code on Mono.
User avatar
Nikshep Mehra
 
Posts: 3
Joined: Thu Jul 28, 2011 5:53 am

Re: The name formatter

Postby Nikshep Mehra » Thu Jul 28, 2011 6:20 am

What does result mean on my submission page and I wanted to know how are scores being generated.

I am comparing my score with some one
mine
http://codercharts.com/submission/33087

someone else
http://codercharts.com/submission/31560

I wanted to know why the difference in score is there the only major difference I see between the two entries is the result column mine is 0 his/her is 538.
User avatar
Nikshep Mehra
 
Posts: 3
Joined: Thu Jul 28, 2011 5:53 am

Re: The name formatter

Postby Nikshep Mehra » Thu Jul 28, 2011 6:38 am

I wanted to know how are scores calculated I am getting a zero score for all my submissions even though all my test cases pass ?
User avatar
Nikshep Mehra
 
Posts: 3
Joined: Thu Jul 28, 2011 5:53 am

Re: The name formatter

Postby admin » Thu Jul 28, 2011 5:43 pm

Hello Nikshep Mehra,

it's all explained in the scoring section of the puzzle:
http://codercharts.com/puzzle/name-formatter

The score is proportional to the size of you program. Every character counts, including spaces, tabs and newlines. The more compact your program, the higher your score. If your program uses more than 1000 chars, it will score 0 points.


And since the Scoring is also set to language, it means that every language class is scored against same language submissions.
http://codercharts.com/content/scoring-system#language
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: The name formatter

Postby phyous » Sat Sep 17, 2011 8:09 pm

My character count is down to 980 and I'm still scoring 0.
User avatar
phyous
 
Posts: 1
Joined: Sat Sep 17, 2011 12:25 pm

Re: The name formatter

Postby admin » Sat Sep 17, 2011 11:19 pm

It's due to \r\n, your editor probably doesn't count them as 2 characters (just count a \r\n as 1 I suppose).
Anyway, we've changed the system to remove \r characters from code submissions, if your resubmit your code, you should get a score that reflects the number of characters you see in your editor.

Thanks for the feedback.
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Assumptions

Postby TheSageMage » Sat Nov 12, 2011 10:12 am

Should We assume that there will always be a period in the middle initial? So if the middle "name" is longer then a single character with a period at the end then it's a particle?
User avatar
TheSageMage
 
Posts: 6
Joined: Sat Nov 05, 2011 9:25 am

Next

Return to Puzzles

Who is online

Users browsing this forum: No registered users and 3 guests

cron