P2979 [USACO10JAN] Cheese Towers S

Description

Farmer John wants to save some blocks of his cows' delicious Wisconsin cheese varieties in his cellar for the coming winter. He has room for one tower of cheese in his cellar, and that tower's height can be at most T (1

Input Format

\* Line 1: Three space-separated integers: N, T, and K \* Lines 2..N+1: Line i+1 contains two space separated integers: V\_i and H\_i

Output Format

\* Line 1: The value of the best tower FJ can build