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?

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

1 | ecnerwala | 3648 |

2 | Benq | 3580 |

3 | orzdevinwang | 3570 |

4 | cnnfls_csy | 3569 |

5 | Geothermal | 3568 |

6 | tourist | 3565 |

7 | maroonrk | 3530 |

8 | Radewoosh | 3520 |

9 | Um_nik | 3481 |

10 | jiangly | 3467 |

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

1 | maomao90 | 174 |

2 | adamant | 164 |

2 | awoo | 164 |

4 | TheScrasse | 160 |

5 | nor | 159 |

6 | maroonrk | 156 |

7 | -is-this-fft- | 150 |

8 | SecondThread | 148 |

9 | pajenegod | 145 |

9 | orz | 145 |

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?

↑

↓

Codeforces (c) Copyright 2010-2024 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Apr/18/2024 03:17:32 (k2).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|

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.