Anyone find these numbers familiar?
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
Anyone find these numbers familiar?
15 ms, 31 ms, 46 ms
Why do these numbers appear so often as the runtime of submissions?
I'm currently looking for a CP partner, who is willing to grind usaco.guide's platinum module with me. I've already been grinding the platinum module for a while now, and I'm serious about it. My plan is to finish the module by May 1st.
Anyone up for it? DM me if so.
Note, you should be in USACO platinum and around at least expert on CF.
Take a look at this submission in C++ 17: click here
Now take a look at this submission in C++ 20: click here
The only difference is the language version (C++ 17 vs C++ 20). Can MikeMirzayanov look into this? Mostly likely it's due to winlibs, but the compilation error is annoying nonetheless.
Hello
For the past few days, I've been trying to solve this problem, but I still cannot come up with a solution that I can prove.
My only current candidate answer is that the longest common zigzag sequence is always in the longest common subsequence, but because there can be multiple longest common subsequences, I don't know which one to choose. Also, I don't even know if the longest common zigzag sequence is part of the longest common subsequence.
Can anyone help me with this problem? I cannot find any good explanations online.
Hello Codeforces!
I've seen people using negative edges when creating a priority queue because writing a minimum is simply too tedious. And, I gotta say, I agree with them! Look at this code when you have to declare a min heap for a pair of ints:
priority_queue<pair<int, int>, vector<pair<int, int>>, greater<>> q;
That simply is too much to write! However, there is a simple solution. Just include this somewhere near the top of your code:
template<typename T>
using min_heap = priority_queue<T, vector<T>, greater<T>>;
Now you can declare a min heap of pairs of ints by writing:
min_heap<pair<int, int>> q;
To me, that is more clear and concise, and less to type! Are there any other reasons that some people might create a min heap by negating edge weights instead of writing that block of code at the top?
Название |
---|