EASYPROB - A Very Easy Problem!

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:Fudan University Problem Setters
Date:2007-07-13
Time limit:0.100s
Source limit:500B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:TEXT
Resource:You can imagine it.

hide comments
2016-12-10 09:34:52
Good question for recursion and i enjoyed playing with bits :-)
2016-09-27 19:31:04 Abhishek
100th on SPOJ! ^_^
2016-09-07 23:53:07
it clears the concept of recursion
2016-08-13 09:01:35 mike
solved using bit manipulation and recursion
2016-08-07 01:04:56
Riddle :-)
2016-06-23 23:35:20 Akshat Jain
took a lil bit to realise 2(2) is 2^2..Simple otherwise..
2016-06-23 18:14:14
Not that Easy!! :P
2016-06-20 04:34:27
Make sure you include "num=", otherwise you'll get WA.
2016-06-18 09:06:28
It could very well accept codes. :)Recursion helps
2016-06-11 11:57:34
Why does the submission allow us to choose only plain text format and not in any proper language like C++. SPOJ PLEASE HELP.

Edit- Just upload output file in txt version, no source code

Last edit: 2016-07-03 13:08:03
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.