# Can't wait for the editorials of ADAROOKS2 and BINARY

**URL:** <https://discuss.codechef.com/t/cant-wait-for-the-editorials-of-adarooks2-and-binary/25460>\
**Category:** editorial\
**Tags:** editorial\
**Created:** [May 13, 2019, 8:49am UTC](https://discuss.codechef.com/t/cant-wait-for-the-editorials-of-adarooks2-and-binary/25460 "2019-05-13T08:49:48Z")\
**Posts on this page:** 11\
**Page:** 4

<div class="post-metadata">

**Author:** ![nikhilag2711](https://discuss.codechef.com/user_avatar/discuss.codechef.com/nikhilag2711/32/21_2.png) [@nikhilag2711](https://discuss.codechef.com/u/nikhilag2711)\
**Post date:** [May 13, 2019, 5:43pm UTC](https://discuss.codechef.com/t/cant-wait-for-the-editorials-of-adarooks2-and-binary/25460/65 "2019-05-13T17:43:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bhanu111](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@bhanu111](https://discuss.codechef.com/u/bhanu111)\
**Post date:** [May 13, 2019, 5:48pm UTC](https://discuss.codechef.com/t/cant-wait-for-the-editorials-of-adarooks2-and-binary/25460/66 "2019-05-13T17:48:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![shubh17cs](https://discuss.codechef.com/user_avatar/discuss.codechef.com/shubh17cs/32/299083_2.png) [@shubh17cs](https://discuss.codechef.com/u/shubh17cs)\
**Post date:** [May 13, 2019, 5:58pm UTC](https://discuss.codechef.com/t/cant-wait-for-the-editorials-of-adarooks2-and-binary/25460/67 "2019-05-13T17:58:42Z")

</div>

You live real THUG LIFE! 🤩🤩🤩

---

<div class="post-metadata">

**Author:** ![pragati2017](https://discuss.codechef.com/user_avatar/discuss.codechef.com/pragati2017/32/2653_2.png) [@pragati2017](https://discuss.codechef.com/u/pragati2017)\
**Post date:** [May 13, 2019, 6:05pm UTC](https://discuss.codechef.com/t/cant-wait-for-the-editorials-of-adarooks2-and-binary/25460/68 "2019-05-13T18:05:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![xrisk](https://discuss.codechef.com/user_avatar/discuss.codechef.com/xrisk/32/6886_2.png) [@xrisk](https://discuss.codechef.com/u/xrisk)\
**Post date:** [May 13, 2019, 6:28pm UTC](https://discuss.codechef.com/t/cant-wait-for-the-editorials-of-adarooks2-and-binary/25460/69 "2019-05-13T18:28:20Z")

</div>

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](https://cs.stackexchange.com/questions/109000/how-do-we-place-8n-objects-in-a-grid-of-size-n-times-n) I don’t know what’s the point doing stuff this way.

---

<div class="post-metadata">

**Author:** ![thesmartguy](https://discuss.codechef.com/user_avatar/discuss.codechef.com/thesmartguy/32/4539_2.png) [@thesmartguy](https://discuss.codechef.com/u/thesmartguy)\
**Post date:** [May 14, 2019, 4:39am UTC](https://discuss.codechef.com/t/cant-wait-for-the-editorials-of-adarooks2-and-binary/25460/70 "2019-05-14T04:39:26Z")

</div>

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??.. 😕

---

<div class="post-metadata">

**Author:** ![thesmartguy](https://discuss.codechef.com/user_avatar/discuss.codechef.com/thesmartguy/32/4539_2.png) [@thesmartguy](https://discuss.codechef.com/u/thesmartguy)\
**Post date:** [May 14, 2019, 4:40am UTC](https://discuss.codechef.com/t/cant-wait-for-the-editorials-of-adarooks2-and-binary/25460/71 "2019-05-14T04:40:31Z")

</div>

not published yet…

---

<div class="post-metadata">

**Author:** ![shivamchef](https://discuss.codechef.com/user_avatar/discuss.codechef.com/shivamchef/32/5634_2.png) [@shivamchef](https://discuss.codechef.com/u/shivamchef)\
**Post date:** [May 14, 2019, 6:45am UTC](https://discuss.codechef.com/t/cant-wait-for-the-editorials-of-adarooks2-and-binary/25460/72 "2019-05-14T06:45:12Z")

</div>

same i am thiking ! 🙂

---

<div class="post-metadata">

**Author:** ![anon55659401](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@anon55659401](https://discuss.codechef.com/u/anon55659401)\
**Post date:** [May 14, 2019, 6:59am UTC](https://discuss.codechef.com/t/cant-wait-for-the-editorials-of-adarooks2-and-binary/25460/73 "2019-05-14T06:59:46Z")

</div>

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 🙂  
Link to my solution:-[CodeChef: Practical coding for everyone](https://www.codechef.com/viewsolution/24244089)

---

<div class="post-metadata">

**Author:** ![shoryaj](https://discuss.codechef.com/user_avatar/discuss.codechef.com/shoryaj/32/21_2.png) [@shoryaj](https://discuss.codechef.com/u/shoryaj)\
**Post date:** [May 14, 2019, 7:38am UTC](https://discuss.codechef.com/t/cant-wait-for-the-editorials-of-adarooks2-and-binary/25460/74 "2019-05-14T07:38:51Z")

</div>

@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.

> <https://math.stackexchange.com/questions/2092001/placing-checkers-on-an-m-x-n-board>

---

<div class="post-metadata">

**Author:** ![anon55659401](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@anon55659401](https://discuss.codechef.com/u/anon55659401)\
**Post date:** [May 14, 2019, 9:47am UTC](https://discuss.codechef.com/t/cant-wait-for-the-editorials-of-adarooks2-and-binary/25460/75 "2019-05-14T09:47:59Z")

</div>

Here is the unofficial editorial:-[Unofficial Editorial for ADAROOKS2-MAY-2019-LONG-CHALLENGE](https://discuss.codechef.com/t/unofficial-editorial-for-adarooks2-may-2019-long-challenge/25572)

[Previous page](https://discuss.codechef.com/t/cant-wait-for-the-editorials-of-adarooks2-and-binary/25460.md?page=3)
