Let’s find per day activity. You have to solve a minimum of 3 problems (per_day_P = P / N) and invest a minimum of 3 hours (per_day_H = H / N) to read books/blogs. Then have to attend at least 1 contest within a week. so the total week in N days is X = N / 7.
So, the answer is YES if per_day_H >= 3 and per_day_P >= 3 and C >= X, otherwise NO.