I have always wondered how can one quickly solve such cases. Can you guys share your insight. How to solve implementation problems so quickly?

Here is one such problem

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

1 | tourist | 3707 |

2 | Benq | 3672 |

3 | Radewoosh | 3655 |

4 | ksun48 | 3547 |

5 | jiangly | 3492 |

6 | Miracle03 | 3480 |

7 | ecnerwala | 3400 |

8 | maroonrk | 3385 |

9 | peehs_moorhsum | 3384 |

10 | sunset | 3338 |

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

1 | 1-gon | 216 |

2 | YouKn0wWho | 190 |

2 | Um_nik | 190 |

4 | sus | 183 |

5 | awoo | 182 |

6 | Errichto | 179 |

7 | tourist | 177 |

8 | -is-this-fft- | 173 |

9 | Radewoosh | 170 |

10 | maroonrk | 169 |

I have always wondered how can one quickly solve such cases. Can you guys share your insight. How to solve implementation problems so quickly?

Here is one such problem

↑

↓

Codeforces (c) Copyright 2010-2021 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Sep/27/2021 13:50:20 (f1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|

I don’t think its implementation problem. More like basic understanding puzzle. It doesn’t require anything except understanding of division and basic odd/even properties.

You may run a loop between A To B , i.e , A <= X <= B , which helps you to get the value of X . Just write a testing code and run it , get the clue and Implement this clue in your solution .