Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3603 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | dXqwq | 3436 |
| 8 | Radewoosh | 3415 |
| 9 | Otomachi_Una | 3413 |
| 10 | Um_nik | 3376 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | adamant | 152 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 144 |
| 5 | errorgorn | 141 |
| 6 | cry | 139 |
| 7 | Proof_by_QED | 136 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 9 | TheScrasse | 134 |
| Название |
|---|



задача 729E — Подчинённые Что делать с нулями если их будет больше одного
Просто заменить
0наn, кроме стартовой конечноСПАСИБО
5 1 0 0 1 1 1
Заменяя второй ноль на 5 в данном случае мы имеем 5 1 0 5 1 1 1 итого ответ будет 2, Хотя можно было заменить на 1 или 2 и ответ был бы 1.
замены
0наnне нужно прибавлять к ответу. мы меняем просто для удобства, они потом поменяются на что иноеОчень надеюсь, что "Скоро будет!" — не пустые слова. По поводу задачи F первого дивизиона.
Обьясните кто-то решение Д, я что-то не понял написаного в разборе
Мне понравилась вот эта идея.
То есть сперва мы приводим состояние поля к такому, что в него не возможно поместить корабли вообще. После этого мы потихоньку удаляем наши выстрелы по одному, пока на поле не поместится a - 1 кораблей.
22390165
"Will be translated soon": Waiting for translation...
Similarly, for zhenya.
Sure, fixed. Thanks!
Any idea why my submission for 729C http://mirror.codeforces.com/contest/737/submission/22410492 is exceeding time limit (on test #9). Please help to check.
Have you tried fast I/O?
Can someone please suggest some reading materials for learning graph matching? =)
For problem C, I do not understand the following statement:
if x ≤ f, then it is possible to ride in the fast mode min(x, f - x) kilometers.
How did you obtain the expression min(x,f-x) kilometers?
Let the number of km in fast mode be k. Then the number of km in slow mode in x — k. So, we have the equation: Fuel used = 2*k + (x — k) <= f -> k + x <= f. Therefore, k <= f — x. Also, k <= x because we stop when we reach the next station. Therefore, k = min(x, f-x).
I had some trouble understanding Div2 D solution, so I'll explain it in more details.
The solution is actually an application of the pigeonhole principle.
Let s be the maximum number of positions where you can place a ship (of course, already considering those k misses of the input). The trick: reduce the problem to its complement! In other words: what is the maximum number of misses we can still make? The answer: m = s - a. If we shoot m ship slots once, an additional shot will hit some slot a second time (by the pigeonhole principle), or will hit a ship. So if we choose m + 1 distinct ship slots to be shot once, at least one of the shots will hit a ship.
In Financiers Game, shouldn't the "difference between the sum" mean the absolute value of the differences?