I got AC for an old problem, but I think my solution is wrong.

Правка en1, от jobseeking, 2025-06-01 09:29:30

Thanks in advance for attention to this 5-year old problem.

1266D - Decreasing Debts

Example input:

5 4
1 2 2
4 1 4
4 2 4
3 1 4

Example output: (generated by Accepted submissions / editorial algorithm, but I do not understand. Can be verified by 67085154)

3
4 1 6
4 2 2
3 2 4

I don't see a way to increase the edge 4-1 to a weight 6, by the operations described in the problem statement.

Теги hack, old contest, wrong, graphs, constructive algorithms, *2000

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский jobseeking 2025-06-01 09:51:58 19
en1 Английский jobseeking 2025-06-01 09:29:30 581 Initial revision (published)