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!
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 155 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
10 | nor | 152 |
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?
In this problem Coprimes I saw some solutions using mobius function. Can anyone throw some light on how mobius function can be used in this problem. Thank you!
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.
In this question http://codeforces.me/contest/330/problem/B I want to ask why the star graph would give minimum number of paths. Thank You.
Название |
---|