| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | jiangly | 3631 |
| 4 | Kevin114514 | 3574 |
| 5 | maroonrk | 3521 |
| 6 | strapple | 3515 |
| 7 | Radewoosh | 3461 |
| 8 | tourist | 3428 |
| 9 | turmax | 3378 |
| 10 | Um_nik | 3376 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 162 |
| 2 | adamant | 148 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 143 |
| 5 | errorgorn | 140 |
| 6 | cry | 138 |
| 7 | Proof_by_QED | 136 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 10 | soullless | 133 |
|
0
Problem link? |
|
On
nhannguyen95 →
Printing string through ostringstream is faster than printing directly string ?, 10 years ago
+9
In the code of the first submission, try changing |
|
+1
Just a tiny correction, if I understood it correctly; you said: "So the challenge is to find an assignment of wagons to locomotives such that minimizes the longest train (locomotive + wagons) forwarded to A (trains sent to B don't matter, you can send huge trains to B and their lengths would be ignored)". The locomotive doesn't count, only the wagons. About the solution per se, I thought about some binary search on the number of vagons, i.e. the answer itself. How? Let's suppose we have a value X and we are able to verify whether it is possible to assign at most X wagons to any of the L locomotives heading to target A. If we have such method, then it's clear that is possible to assign at most X + 1 or X + 2 or X + 3 (and so on) wagons to the L locomotives. Now, how to create such method to verificate whether, given the so called value X, it is possible to find a correct assignment? I thought something like this: we will create a variable called I didn't actually code this problem, so I may have committed some mistake in the above thinking. Feel free to criticize. |
|
0
In problem E, why can't we use the euclidean algorithm to find the gcd between |
|
0
Hi. Can you, please, share the problem's link? Thanks! |
|
+5
Nice one too!! Thank you!! |
|
+5
Thank you!!! |
|
0
Why do we need to sum up |
| Name |
|---|


