Sphere Online Judge

Computer geeks! Show off your skills and claim the job of your dreams! RecruitCoders.com

SPOJ Problem Set (classical)

1688. A Very Easy Problem!

Problem code: EASYPROB

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

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.


Added by:[Trichromatic] XilinX
Date:2007-07-13
Time limit:1s
Source limit:500B
Languages:TEXT
Resource:You can imagine it.

hide comments
2012-05-22 18:32:13 adzen
Even it can be done manually (if you figure out the rule), it is still a good programming exercise. :)
(I'm too lazy to write code for this problem...XDDrz)
2012-04-19 10:24:46 PubLic_AvenGeR
Definitely worth doing by programming,,,gr8 fun.Not d easiest by any means :)
2012-03-12 19:29:57 Shaily Mittal
Why i am getting WA again and again...., please check code 6643138
2012-01-19 16:40:14 Erben
Damn parentheses! They costed me 5 submissions :(
2011-10-31 12:41:13 Kumar Harsh
DO it with programming... surely not the "easiest" one, and not as straightforward as you may assume...
but it was really fun doing it!
2011-06-01 08:38:06 Santiago Palacio
I agree with randomguywithoutaname, it was fun!
2011-04-18 19:47:19 Omar Prieto
I don't understand, why 137 is equal to 2(2(2(2(0)))+2(2(0))+2(0))+2(2(2(0))+2(0))+2(0)?
just putting the numbers each one in a new line is not enough?
2011-03-05 19:41:54 randomguywithoutaname
This was fun, and I found it easier to just write code to come up with the solution. It should be made into a coding problem!
2010-07-06 13:21:06 :D
Re: Bharath Kumar M J: You should just post the anwser for this problem, not a program (that's what text input means).

Re: Vishal Vivek: compiling may be printed by the judge even when there's no compilation (like intepreted languages). And you're getting WA because you're anwser is wrong :).
SPOJ System © 2012 Sphere Research Labs | Projekty informatyczne i aplikacje na zamówienie. All Rights Reserved.