The contest submissions aren't made public and there is no editorial so I am asking here about the approaches for these 2 problems:

Thanks!

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

1 | tourist | 3821 |

2 | Benq | 3744 |

3 | ksun48 | 3559 |

4 | Radewoosh | 3538 |

5 | peehs_moorhsum | 3531 |

6 | Um_nik | 3488 |

7 | maroonrk | 3423 |

8 | Petr | 3379 |

9 | sunset | 3337 |

10 | ecnerwala | 3335 |

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

1 | 1-gon | 206 |

2 | awoo | 181 |

2 | Errichto | 181 |

4 | Um_nik | 180 |

5 | -is-this-fft- | 175 |

6 | maroonrk | 174 |

7 | Radewoosh | 173 |

8 | tourist | 172 |

9 | SecondThread | 171 |

10 | rng_58 | 166 |

The contest submissions aren't made public and there is no editorial so I am asking here about the approaches for these 2 problems:

Thanks!

I wanted some insights on how to solve this problem.

My WA Approach: I thought all the non-leaf nodes in centroid decomposed tree would be the answer (with the exception of n = 1 where answer would be 1)

In order to study rotating calliper technique this website is listed at many places, but it is not working anymore.

http://cgm.cs.mcgill.ca/~orm/rotcal.html

Is it down temporarily or that resource is no more available?

I had a vector of pairs. I wanted it sorted in descending according to the first value of the vector.

```
sort(a.begin(),a.end(),[](pair<int,int> &left, pair<int,int> &right){
return left.first >= right.first;
});
```

This gave me TLE. Sorting it normally

```
sort(a.begin(),a.end());
```

and iterating from the end worked.

Why does the first sorting function give TLE? Do I have to implement it some other way?

I read that there are many great problems on POI. But the website is not loading. POI.Where can I find these problems ?

Thank You.

My approach for ChessMetric is to find all the positions reachable from position start, then put them in a queue of tuples where first and second elements are the co-ordinates and the third is number of moves. But it is giving Memory limit exceeded. Any idea how to make this efficient? I used unsigned short int for co-ordinates and number of moves.

Thank You.

Codeforces (c) Copyright 2010-2021 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Jul/28/2021 17:51:46 (j3).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|