A Very Easy Problem!Problem code: EASYPROB |
All submissions for this problem are available.
Input
There's no input.
Output
Output some form of these numbers: 137, 1315, 73, 136, 255, 1384, 16385, one per line in the listed order.
Example
Output: The first two lines of the CORRECT output file are: 137=2(2(2)+2+2(0))+2(2+2(0))+2(0) 1315=2(2(2+2(0))+2)+2(2(2+2(0)))+2(2(2)+2(0))+2+2(0) The correct output file should contain 7 lines.
| Author: | admin |
| Date Added: | 13-03-2009 |
| Time Limit: | 1 sec |
| Source Limit: | 500 Bytes |
| Languages: | CLOJ, CPP 4.3.2, F#, GO, JS, PYTH 3.1.2, SCALA, TCL, TEXT |
Comments
SUCCESSFUL SUBMISSIONS FOR THIS PROBLEM:
HELP
Program should read from standard input and write to standard output. After you submit a solution you can see your results by clicking on the [My Submissions] tab on the problem page. Below are the possible results:
- Accepted
Your program ran successfully and gave a correct answer. If there is a score for the problem, this will be displayed in parenthesis next to the checkmark. - Time Limit Exceeded
Your program was compiled successfully, but it didn't stop before time limit. Try optimizing your approach. - Wrong Answer
Your program compiled and ran succesfully but the output did not match the expected output. - Runtime Error
Your code compiled and ran but encountered an error. The most common reasons are using too much memory or dividing by zero. For the specific error codes see the help section. - Compilation Error
Your code was unable to compile. When you see this icon, click on it for more information.
If you are still having problems, see a sample solution here.

Fetching successful submissions

We have to submit the source code file(.c) or the text file(.txt) outputed after the execution of program.
You can submit either.
I had no idea that TEXT meant that i could just submit my result. I thought TEXT was some new programming language. So i programmed in SCALA. My first. I managed to get the source below 500b but the compile time was killing me!!!! I rewrote the code cutting the run time from .700 to .056 but the source code (@ over 700b) was too large to submit. Still SCALA is sort of cool...
Is there a way to contact others who have submitted code? It would be interesting to see their code if they were willing to share it.
@james Not at the moment.
Hi frendz,
I cant understand anything from the above. Can anyone please help me.
@anyone I m disappointed with lack of information. i cannot understand the concept. :( i m feeling bashing my head against the wall.
@vishal Please won't do that :) There is a lot of fun associated with trying to figure out such things.
how 2 submit text.??
In the list of languages, you
In the list of languages, you will find the option for TEXT.
Not understood!!!!!!!!!!plz
Not understood!!!!!!!!!!plz F1.
IAM NOT ABLE TO SUBMIT THE
You are probably missing out
i cant understand the
What is that series? cant
Observe that a particular
I was really disappointed to
I was really disappointed to see this kind of "mysterious crap" here. I was able to find the solution quickly, but I still don't understand why is this problem here. It is just a silly puzzle, it is not a programming problem.
Well, it's a refreshing
Well, it's a refreshing change from the run of the mill programming problems isn't it :)
Can an admin jus check out d
Can an admin jus check out d code n at least tel me d no in which im goin wrong coz iv calculated each n every num, checked d brackets 5 times stil gives wrong ans..
nice recursion problem... but
nice recursion problem... but why limit it to "text" and "c#2"? lisp and python solutions would be elegant and practical.
got it ported to c#, but the
got it ported to c#, but the size restriction made it a bear...
You are meant to just solve
You are meant to just solve it and just type in the results as text - you know all the test cases, so you don't need to submit a program.
hint: write the numbers in
hint:
write the numbers in binary.
Thanks, Stephen... I
Thanks, Stephen... I understood that, but I wanted to be one of the first to submit an actual program... I don't know how the SCALA guy got his in, when the only options are C#2 and TEXT. Anyway, if you scroll through the pages of successful entries, you'll see my C#2 entry there.
2(2(2)+2+2(0))+2(2+2(0))+2(0)
2(2(2)+2+2(0))+2(2+2(0))+2(0) 2(2(2+2(0))+2)+2(2(2+2(0)))+2(2(2)+2(0))+2+2(0) 2(2(2)+2)+2(2+2(0))+2(0) 2(2(2)+2+2(0))+2(2+2(0)) 2(2(2)+2+2(0))+2(2(2)+2)+2(2(2)+2(0))+2(2(2))+2(2+2(0))+2(2)+2+2(0) 2(2(2+2(0))+2)+2(2(2+2(0)))+2(2(2)+2)+2(2(2)+2(0))+2(2+2(0)) 2(2(2+2(0))+2(2)+2)+2(0)
M i GETTING WRONG ANSWER?
even i am gettin d ans as
even i am gettin d ans as wrong?? like avinash.. why??
do we have any boundary conditions here/
I am also getting wrong ans
I am also getting wrong ans like avinash and it looks right to me.
i have got the algo right for
i have got the algo right for calculating, i guess.But don't know how to write the output....plz help.
Hello Admins, I have checked
Hello Admins,
I have checked my code several times, but still can't find the error. Please look at the solution and tell the mistake:
137=2(2(2)+2+2(0))+2(2+2(0))+2(0)
1315=2(2(2+2(0))+2)+2(2(2+2(0)))+2(2(2)+2(0))+2+2(0)
73=2(2(2)+2)+2(2+2(0))+2(0)
136=2(2(2)+2+2(0))+2(2+2(0))
255=2(2(2)+2+2(0))+2(2(2)+2)+2(2(2)+2(0))+2(2(2))+2(2+2(0))+2(2)+2(2(0))+2(0)
1384=2(2(2(2))+2)+2(2(2(2)))+2(2(2)+2)+2(2(2)+2(0))+2(2+2(0))
16385=2(2(2(2))+2(2)+2)+2(0)
Your last three are all
Your last three are all incorrect. Compare their formats to the first 4 and the mistakes should be obvious.
printf("137=2(2(2)+2+2(0))+2(
printf("137=2(2(2)+2+2(0))+2(2+2(0))+2(0)");
printf("1315=2(2(2+2(0))+2)+2(2(2+2(0)))+2(2(2)+2(0))+2+2(0)");
i wanted to do this by hand,
i wanted to do this by hand, i almost made it but an accidental typo (which i didn't notice) caused a WA. I finally wrote a program for it, checked my result ... and found the err.
Since i already had written a program, i also posted a C#2 solution for it.
i hv written the code for
i hv written the code for this question in C
i TRIED IT USING THE SYNTAX of c# (from internet and knowledge of JAVA) but failed
Solution is not accepted bcoz it is too long(500 bytes)
PLz help
can i post it here for clarification-pls suggest
You should be running your
You should be running your program, then submitting your output as text, not as a program.
Whats the problem with
Whats the problem with these?
*snip*
One of them is just plain
One of them is just plain wrong. Check them again.
hey how they are genarated i
hey how they are genarated
i cant find the solution
what is logic
Hello freinds anyone can help
Hello freinds anyone can help me
what exactly the concept is ?????????
What kind of series is this?
What kind of series is this? In the given example, how come right hand side is equal to the left hand side?
Well I think source code should be provided for this. And those hints, recurssion, binary didn't helped me. :(
hi admin, i got the logic.
hi admin,
i got the logic. but, on submitting, it is always saying that "wrong answer". is anything wrong in my answer ? can you please tell me , whether my answer is correct or not ? should i submit answer in other formats ?
137=2(2(2)+2+2(0))+2(2+2(0))+2(0)
1315=2(2+2(2+2(0)))+2(2(2+2(0)))+2(2(2)+2(0))+2+2(0)
73=2(2(2)+2)+2(2+2(0))+2(0)
136=2(2(2)+2+2(0))+2(2+2(0))
255=2(2(2)+2+2(0))+2(2(2)+2)+2(2(2)+2(0))+2(2(2))+2(2+2(0))+2(2)+2(0)
1384=2(2+2(2+2(0)))+2(2(2+2(0)))+2(2(2)+2)+2(2(2)+2(0))+2(2+2(0))
16385=2(2+2(2)+2(2+2(0)))+2(0)
please friends... anyone tell
please friends...
anyone tell me whether my answer is correct or not ?
I am a new one for this type
I am a new one for this type of challenges, so I need some time...plsssss...
Hi admin i get following
Hi admin i get following error while submitting my soln in C#2. :(
You can't submit in this language for this problem
Hi, I learnt 'C' long time
Hi,
I learnt 'C' long time ago. Now that i want to be a professional programmer and in a short time. Which language i should start learning and how long it could take to start my programming profession as a freelancer.
Can any professional programmer reply to this ?
thanks
my answer
my answer is
137=2(2(2)+2+2(0))+2(2+2(0))+2(0)
1315=2(2(2+2(0))+2)+2(2(2+2(0)))+2(2(2)+2(0))+2+2(0)
73=2(2(2)+2)+2(2+2(0))+2(0)
136=2(2)+2+2(0)+2(2+2(0))
255=2(2(2)+2+2(0))+2(2(2)+2)+2(2(2)+2(0))+2(2(2))+2(2+2(0))
1384=2(2(2+2(0)+2))+2(2(2+2(0)))+2(2(2)+2)+2(2(2)+2(0))+2(2(2))
16385=2(2(2+2(0))+2(2)+2)+2(0)
please tell me where i'm wrong
Three of your answers are
Three of your answers are wrong. Read through what you have written carefully; there are some errors you should be able to spot without even making any calculations.
137=2(2(2)+2+2(0))+2(2+2(0))+
137=2(2(2)+2+2(0))+2(2+2(0))+2(0)
1315=2(2(2+2(0))+2)+2(2(2+2(0)))+2(2(2)+2(0))+2+2(0)
73=2(0)+2(2+2(0))+2(2+2(2))
136=2(2(2)+2+2(0))+2(2+2(0))
255=2(2(2)+2+2(0))+2(2+2(2))+2(2(2)+2(0))+2(2(2))+2(2+2(0))+2(2)+2+2(0)
1384=2(2(2+2(0))+2)+2(2(2+2(0)))+2(2(2)+2)+2(2(2)+2(0))+2(2+2(0))
16385=2(2(2+2(0))+2(2)+2)+2(0)
Stephen if u can pllz tell me where i m wrong
i had calculated this output logically
Two of your answers are
Two of your answers are wrong. One should be very obvious.
Please tell how to submit the
I can't understand the
Nice problem for a
Favorite post having such an
plzz explain this pblm???
oO lol, I was over
The slightest hint to this
Yeah, very easy...after
was really very easy...quite