Sphere Online Judge

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
2010-01-31 11:02:36 hbk
be careful about balancing parantheses...it costed me 10 submissions.. :P
2009-08-11 01:02:45 SmitherS
Of course it is allowed to do this by hand, but coding it is much more fun!

Unrelatedly, I would have put:
137=2(2(2(2(0)))+2(2(0))+2(0))+2(2(2(0))+2(0))+2(0)
but maybe that's just me! :)
2009-06-04 19:28:48 raghu
huh got fed up typing 2 0 ( ) +......:)
2009-05-01 07:57:36 **
 
'21 Lines of C++',That's enough. :)

Last edit: 2009-05-01 07:58:33
2009-02-21 19:55:50 Moshiur Rahman
Very easy to do by hand! but can be a little challenging to generate by a program.
SPOJ System © 2008-2010 Sphere Research Labs. All Rights Reserved.