This problem is in Contest(s) below:
Contest 1473:网络流入门
Contest 1509:网络流入门
Contest 1129:网络流复习