CodeChef is a non-commercial competitive programming community
Login
Username (New User? Signup) Password (Forgot Password?)
Signup
Login or
Signup with
Connect
Note
  • Publicize your achievements on your Facebook Wall.
  • Challenge your friends or ask them for help.

Site Navigation

  • PRACTICE
    • Easy
    • Medium
    • Hard
    • Challenge
    • Peer
  • COMPETE
    • All Contests
    • June Challenge 2013
    • May Cook-Off 2013
    • May Challenge 2013
  • DISCUSS
    • Forums
    • Blog
    • Wiki
    • Facebook
    • Twitter
  • COMMUNITY
    • Campus Chapters
    • Host your Contest
    • Go for Gold
    • All Educational Initiatives
  • HELP
    • Frequently Asked Questions
    • FAQ for problem setters
    • Problem Setting
    • Tutorials
    • Long Contest Ranks
    • Short Contest Ranks
    • Event Calendar
    • Top Contributors on Discuss
  • ABOUT
    • About CodeChef
    • Team CodeChef
    • Press Room
    • CodeChef Financials
    • CodeChef Sponsorships
    • CEO's Corner
    • Contact Us
    • About Directi
Home » Compete » Android Hack Camp 2012 » 

Problem code: A106

  • All Submissions

All submissions for this problem are available.


Author: solas_143
Date Added: 10-04-2012
Time Limit: 1 sec
Source Limit: 50000 Bytes
Languages: ADA, ASM, BASH, BF, C, C99 strict, CAML, CLOJ, CLPS, CPP 4.0.0-8, CPP 4.3.2, CS2, D, ERL, FORT, FS, GO, HASK, ICK, ICON, JAR, JAVA, JS, LISP clisp, LISP sbcl, LUA, NEM, NICE, NODEJS, PAS fpc, PAS gpc, PERL, PERL6, PHP, PIKE, PRLG, PYTH, PYTH 3.1.2, RUBY, SCALA, SCM guile, SCM qobi, ST, TCL, TEXT, WSPC


  • Submit

Comments

  • Login or Register to post a comment.

Is there space between Input?

Illusion03 @ 14 Apr 2012 03:19 PM
Is there space between Input? Like 14 12 13 2 5 or is it 14121325?

"_2001" in the sample input

cyberax @ 14 Apr 2012 05:22 PM
"_2001" in the sample input should be "#2001", right ? @illusion03: without spaces, the problem would be undecidable, as 11 could mean "AA" or "K".

Yes...there is space between

solas_143 @ 14 Apr 2012 06:52 PM
Yes...there is space between 14 12 13 2 ....!!..

From the problem: 5)Each

tec @ 14 Apr 2012 09:21 PM
From the problem: 5)Each letter was converted to a number that is the sum of its base number and it's position in the word. But in the example, only base number is considered. Which is the case?

wt's the size of each

hariprasath @ 14 Apr 2012 09:53 PM
wt's the size of each message??

@solas_143, You are right,

cupidvogel @ 14 Apr 2012 09:59 PM
@solas_143, You are right, although the question mentions ")Each letter was converted to a number that is the sum of its base number and it's position in the word", in the example only base number is considered. So admins, kindly elaborate. And yes, I have read the problem statement umpteen times, so don't ask me to do it..

Can the message have some

cupidvogel @ 14 Apr 2012 10:00 PM
Can the message have some no-digits follow a # sign, like #, ?

@All Yes u may consider only

solas_143 @ 14 Apr 2012 11:00 PM
@All Yes u may consider only the base values and ignore its position in the word

@cupidvogel For Speacial

solas_143 @ 14 Apr 2012 11:02 PM
@cupidvogel For Speacial characters use them as it is in the program except for underscore(_) and hash(#) They are not allowed to be used

what will be the answer in

chan00 @ 15 Apr 2012 01:22 AM
what will be the answer in case of #-23 will it be -W or -23 ? whether number after # will be always positive or not ???

@solas_143 reply plzzz..

chan00 @ 15 Apr 2012 01:24 AM
@solas_143 reply plzzz..

i hv done correctly as far as

chirayu @ 15 Apr 2012 02:18 AM
i hv done correctly as far as i think so, cant understand y m getting WA???.

are these possible 27 28 29

chirayu @ 15 Apr 2012 02:33 AM
are these possible 27 28 29 30 and so on??if yes, what should be output for them???

I don't know why I got 3

chan00 @ 15 Apr 2012 02:50 AM
I don't know why I got 3 wrong submissions for such a simple question .........................:(

@cyberax : can u clear the

chan00 @ 15 Apr 2012 05:11 AM
@cyberax : can u clear the doubts mentioned above :)

what this should print # 12

chan00 @ 15 Apr 2012 05:37 AM
what this should print # 12 --> a number or alphabet as space between # and number .....???????????????

@chan00: --- cupidvogel @ 14

cyberax @ 15 Apr 2012 06:58 AM
@chan00: --- cupidvogel @ 14 Apr 2012 10:00 PM "Can the message have some no-digits follow a # sign, like #, ?" --- solas_143 @ 14 Apr 2012 11:02 PM "@cupidvogel For Speacial characters use them as it is in the program except for underscore(_) and hash(#) They are not allowed to be used"

@chan00 # 12 will only print

solas_143 @ 15 Apr 2012 09:22 AM
@chan00 # 12 will only print L because there should be no space in between. And as for #-23 it would be -W not 23as the number does bot has an immediate hash before it.

@chirayu...if after # 27

solas_143 @ 15 Apr 2012 09:35 AM
@chirayu...if after # 27 comes than it will consider as 27 ..but we haven't include test cases like 27 .... only alphabet form 1 to 26 will be consider in upper case..!.

I m sure my code is

chirayu @ 15 Apr 2012 12:26 PM
I m sure my code is perfect!!! Dont know why i am getting WA!! Please check this id:980940??

input data problem?? i did

satya_patel @ 15 Apr 2012 01:38 PM
input data problem?? i did with gets, getc(stdin) and getchar but when i use fflush getting TLE when i use dummy variable runtime error. i am sure for every test case the input line is not terminated with new line..................the easy problems both decoder-1 ans 2 sucks because of the input data.....................:(((

please check my submission

chan00 @ 15 Apr 2012 01:54 PM
please check my submission @admin id -981090. i have done exactly what said in problem. this time my problem ran for few seconds only and then wrong submission . I think satya_patel is right some "n" problem but now i have used strlen() as delimiter for every line i scan using gets() method @admin please review this problem test cases as it has only 10 submission and i have solved all in 1st submission but getting WA for only this one please check :)

@chan00 we have around 30

solas_143 @ 15 Apr 2012 02:58 PM
@chan00 we have around 30 successful submissions for this problem. I cannot help u with any language specific functions as this is an open competition. Moreover make sure that ur output and input are in the same format as mentioned. Slightest discrepancy and the automatic testing system will render ur answers as wrong.

@satya_patel These questions

solas_143 @ 15 Apr 2012 03:02 PM
@satya_patel These questions have been uploaded after our technical team has solved it with the currently given input output set. Also there are others who have already solved. Moreover i cannot help u with any language specific problems.

can any correct solution

tester_rock @ 15 Apr 2012 10:32 PM
can any correct solution submitter..help me out?what happened to the space in 2001 ?

can now sm1 help me identify

chirayu @ 16 Apr 2012 02:24 PM
can now sm1 help me identify where i was wrong?? Submission id: 980443

@admin : please check how

chan00 @ 16 Apr 2012 06:22 PM
@admin : please check how come many people have the same solution . many of them have exact same solution. I think there is some cheating please check ,

@solas_143 : I ran the code

chan00 @ 16 Apr 2012 06:59 PM
@solas_143 : I ran the code submitted here by many of them like karlheinxjing , mafia111, illusion, innocent_Avi etc for input given in the question and it gives me solution : NUMBER_16ENCIL APRIL8,#2001 which is WRONG WRONG WRONG........mind it.... With my submission i am getting right but my solution never got accepted. Too sad most of the people who solved it have copied solution from here : http://tausiq.wordpress.com/2009/09/18/decoder/..... MOREOVER if u check CYBERAX solution for the test case #_1#_2#_3 according to you as u told me above it should output : A B C but run this on cyberax solution you will get 1 2 3 which is WRONG WRONG WRONG.......... TOO Buggy contest SAD :(

@chan00: All of this

rushilpaul @ 16 Apr 2012 10:47 PM
@chan00: All of this contest's problems have either too many language errors or too many errors in question or both. This contest is not worth anybody's time.

@rushilpaul : yeah you are

chan00 @ 16 Apr 2012 11:24 PM
@rushilpaul : yeah you are right.

@chan00: as explained by

cyberax @ 17 Apr 2012 12:56 AM
@chan00: as explained by solas_143, "#_1#_2#_3" is not a valid input, because # is intended to be followed by numbers. that's why my program does not handle the test case you provide.

python user got it correct by

lelouch @ 17 Apr 2012 05:30 AM
python user got it correct by directly printing print 'NUMBER 2 PENCIL'

SUCCESSFUL SUBMISSIONS


Fetching successful submissions

CodeChef is a non-commercial competitive programming community
  • About CodeChef
  • About Directi
  • CEO's Corner
  • C-Programming
  • Programming Languages
  • Contact Us
© 2009 Directi Group. All Rights Reserved. CodeChef uses SPOJ © by Sphere Research Labs
In order to report copyright violations of any kind, send in an email to copyright@codechef.com
CodeChef a product of Directi
The time now is:
CodeChef - A Platform for Aspiring Programmers

CodeChef was created as a platform to help programmers make it big in the world of algorithms, computer programming and programming contests. At CodeChef we work hard to revive the geek in you by hosting a programming contest at the start of the month and another smaller programming challenge in the middle of the month. We also aim to have training sessions and discussions related to algorithms, binary search, technicalities like array size and the likes. Apart from providing a platform for programming competitions, CodeChef also has various algorithm tutorials and forum discussions to help those who are new to the world of computer programming.

Practice Section - A Place to hone your 'Computer Programming Skills'

Try your hand at one of our many practice problems and submit your solution in a language of your choice. Our programming contest judge accepts solutions in over 35+ programming languages. Preparing for coding contests were never this much fun! Receive points, and move up through the CodeChef ranks. Use our practice section to better prepare yourself for the multiple programming challenges that take place through-out the month on CodeChef.

Compete - Monthly Programming Contests and Cook-offs

Here is where you can show off your computer programming skills. Take part in our 10 day long monthly coding contest and the shorter format Cook-off coding contest. Put yourself up for recognition and win great prizes. Our programming contests have prizes worth up to Rs.20,000 and $700lots more CodeChef goodies up for grabs.

Discuss

Are you new to computer programming? Do you need help with algorithms? Then be a part of CodeChef's Forums and interact with all our programmers - they love helping out other programmers and sharing their ideas. Have discussions around binary search, array size, branch-and-bound, Dijkstra's algorithm, Encryption algorithm and more by visiting the CodeChef Forums and Wiki section.

CodeChef Community

As part of our Educational initiative, we give institutes the opportunity to associate with CodeChef in the form of Campus Chapters. Hosting online programming competitions is not the only feature on CodeChef. You can also host a coding contest for your institute on CodeChef, organize an algorithm event and be a guest author on our blog.

Go For Gold

The Go for Gold Initiative was launched about a year after CodeChef was incepted, to help prepare Indian students for the ACM ICPC World Finals competition. In the run up to the ACM ICPC competition, the Go for Gold initiative uses CodeChef as a platform to train students for the ACM ICPC competition via multiple warm up contests. As an added incentive the Go for Gold initiative is also offering over Rs.8 lacs to the Indian team that beats the 29th position at the ACM ICPC world finals. Find out more about the Go for Gold and the ACM ICPC competition here.