I have been trying to solve this problem lately and I find that there is something wrong with it . Can someone help me solving it. https://codeforces.com/contest/656/problem/A

# The code i used to solve it is attached below (in C language)

# include<stdio.h>

# include<math.h>

main() { double a,c; scanf("%lf",&a); if(0<=a<=35){ c=pow(2, a); printf("%.0lf",c); } }

Please help me out :)

this solution is wrong, the answer isn't the sequence of powers of 2

Is my code wrong ?

It's April Fools Day contest problem. Expect to be fooled.

Yes, your code is not correct. The answer is not just printing powers of 2. There is more to it.

What else must it print out?

I suggest you skip this problem if you are only trying to improve your competitive programming skills.

This kind of problem is only for pure fun. It won't help you become a red coder.

You can find the solution to the problem here.