Help me in this problem getting wa


https://www.codechef.com/viewsolution/37405268

this is my solution for that.

1 Like

I get “Access Denied” when I click on this link.

1 Like

access denied!

1 Like

sorry i don’t know why that is happening

Looks like all the solutions are hidden, which sometimes happens for Practice Problems.

@admin - are the solutions for https://www.codechef.com/problems/AMMEAT2 deliberately non-public?

3 Likes

ok i my approach is print k even numbers since they are non co-primes as asked in the question.and if k>n/2 then “-1”

please tell me if my approach is correct

if k=1 and n=1 then what are you printing?

2 Likes

@sebastian i’m printing 2 and it is wrong got it.
Thanks