Can't wait for the editorials of ADAROOKS2 and BINARY

@sapjv You can also use cout << setprecision(10) << n/2.0; as the setprecision function removes the error caused due to double.

https://www.codechef.com/viewsolution/24188506
@alei what’s wrong with this solution.adapawns.

You live real THUG LIFE! :star_struck::star_struck::star_struck:

1 Like

I don’t know where is the editorial of may long challenge? Please help me to find the link.

Quite pathetic that some people always ask for solutions on StackOverflow and try to climb rating that way: algorithms - How do we place $8n$ objects in a grid of size $n \times n$? - Computer Science Stack Exchange I don’t know what’s the point doing stuff this way.

4 Likes

How the stackers and some people here are able to solve it so fast…I have given a lot of time to this question still did not got anything on time…Is the finite projections solution so obvious?..i have not even heard of it…any good tutorials for it??.. :confused:

not published yet…

same i am thiking ! :slight_smile:

1 Like

No bro no… The obvious solution is this one… In the first column, place rooks at co-ordinates:-1,4,7…47 … Then for the second column, add 1 to previous co-ordinates and hence, the problem is over :slight_smile:
Link to my solution:-CodeChef: Practical coding for everyone

@thesmartguy read this. Its the same question and more than 2 years old. My guess is this is why a lot of people knew about this approach.

1 Like

Here is the unofficial editorial:-Unofficial Editorial for ADAROOKS2-MAY-2019-LONG-CHALLENGE

1 Like