P2535 [AHOI2012] Collect Resources
Description


Input Format

Output Format

Explanation/Hint
Constraints:
- 50%: $1 \le N, M, T \le 100$.
- 100%: $1 \le N, M, T \le 200$.
Translated by ChatGPT 5