I am looking for CNOI (Chinese National Olympiad in Informatics) problems with creative, elegant solutions. I would be very glad if you could give me some suggestions.
By the way, is it possible to find editorials to these problems on the internet?
№ | Пользователь | Рейтинг |
---|---|---|
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 |
I am looking for CNOI (Chinese National Olympiad in Informatics) problems with creative, elegant solutions. I would be very glad if you could give me some suggestions.
By the way, is it possible to find editorials to these problems on the internet?
Название |
---|
Thank you very much.
"Thank you REALLY much." I didn't even find it on Google but my English is suck anyway so I'm not sure it's wrong :P
Everybody makes mistakes :P
Does anyone know how to solve this: http://wcipeg.com/problem/noi08p3 ?
My linear programming solution passes but I don't think it's the "correct" solution...
In fact it is a network flow problem, so linear programming is also correct.
Can you explain what the network is? I can't think of anything that doesn't allow you to hire half a worker, which can't be right...
Write down all the inequalities for each day, like:
type1 + type2 + ... >= Ai
. Add a free variable to each of them:type1 + type2 + ... - Bi = Ai
. Now subtract all consecutive equations, each variable will occur exactly twice. Add an edge to network for each of them. Add an edge from the source to each positive equation, and an edge from each negative equation to the target.Here's my code:
This is beautiful :) Thanks!
Can u plz explain how this actually works?
I mean how are the constraints in LP converted into edge capacities.
You can find almost all of the NOI problems here: http://www.lydsy.com/JudgeOnline/problemset.php?search=[noi Certainly,those are in Chinese.