Could you please tell me how to solve problem B (Breaking Biscuits) in the gym contest http://codeforces.com/gym/101606 ?

Thanks

# | User | Rating |
---|---|---|

1 | tourist | 3803 |

2 | Benq | 3783 |

3 | Radewoosh | 3602 |

4 | maroonrk | 3575 |

5 | fantasy | 3526 |

6 | ko_osaga | 3500 |

7 | ksun48 | 3491 |

8 | Um_nik | 3486 |

9 | jiangly | 3474 |

10 | orzdevinwang | 3461 |

# | User | Contrib. |
---|---|---|

1 | awoo | 180 |

2 | -is-this-fft- | 177 |

3 | nor | 169 |

4 | Um_nik | 168 |

5 | SecondThread | 164 |

6 | maroonrk | 163 |

7 | adamant | 161 |

8 | kostka | 160 |

9 | YouKn0wWho | 158 |

10 | errorgorn | 153 |

Could you please tell me how to solve problem B (Breaking Biscuits) in the gym contest http://codeforces.com/gym/101606 ?

Thanks

I can't solve this problem: http://www.spoj.com/HSPL09/problems/HS09NLG/

Can the problem somehow be reduced to NIM game?

I have lately learned how to use the LCA algorithm.

I am now wondering whether HLD can be used to solve problems that LCA can't solve or not?

What are your thoughts?

Thanks

(a % b) % c == (a%c) %b Is this statement true?

Hi all,

Does anyone have recommendations on how to add a link to my account on Codeforces to my Linkedin profile?

How can I mention my experience on Codeforces in an elegant way?

Thanks

Hi all,

Can you tell me how can i generate Random Prime Numbers in polygon using generators?

Thanks

Hi all,

I would like to know if there is a mathematical way to choose the appropriate value of epsilon given the maximum/minimum value of the x and y coordinates?

And will choosing a very small value of epsilon cause any sort of problems?

Hi guys,

I have always used the top-down approach of dynamic programming until i found that some questions require using the bottom-up (table method) to optimize memory and(or) time usage.

Could you please tell me what are these optimizations or provide a link to a blog post/website that explains it?

Thanks

I would like to know if implementing the **trie** using a Node struct(class) is considered a good way of implementing it in competitive programming.

I saw that some programmers use a multidimensional array to implement it which seems a bit confusing.

Thanks

Codeforces (c) Copyright 2010-2023 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Feb/07/2023 01:14:54 (k3).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|