The first line of input has two integers: N (0 N 1000) that indicates the number of different pipe sizes and T (0 T 2000), that is the size of each pipe produced by OBI. Each of the following N lines has two integers: Ci and Vi (1 Ci, Vi 5000, 1 i N), representing, respectively, the length and the sales value of a client ordered pipe i. In java code with throws IOException..