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.
hide comments
joe001:
2016-12-10 09:34:52
Good question for recursion and i enjoyed playing with bits :-) |
|
Abhishek:
2016-09-27 19:31:04
100th on SPOJ! ^_^ |
|
ashishranjan28:
2016-09-07 23:53:07
it clears the concept of recursion
|
|
mike:
2016-08-13 09:01:35
solved using bit manipulation and recursion |
|
square1001:
2016-08-07 01:04:56
Riddle :-) |
|
Akshat Jain:
2016-06-23 23:35:20
took a lil bit to realise 2(2) is 2^2..Simple otherwise.. |
|
baadshah_:
2016-06-23 18:14:14
Not that Easy!! :P
|
|
comp0zr:
2016-06-20 04:34:27
Make sure you include "num=", otherwise you'll get WA. |
|
kesucool:
2016-06-18 09:06:28
It could very well accept codes. :)Recursion helps
|
|
sonali9696:
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.
|
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. |