complete read function

This commit is contained in:
JLo'w 2016-02-11 19:36:20 +01:00
parent 05581c0c4a
commit 192f6fad2e

22
read.py
View file

@ -30,5 +30,25 @@ def Read_input_file(file):
Wp[i] = (int(info[0]), int(info[1]))
line = readline()
info = line.split(' ')
productQ = {}
for (j in range(1, info.size()+1):
productQ[j] = int(info[j])
Wi[i] = productsQ
line = readline()
nbC = int(line)
for(i in range(0, nbC)):
line = readline()
info = line.split(' ')
Cp[i] = (int(info[0]), int(info[1]))
line = readline()
nbP = int(line)
line = readline()
info = line.split(' ')
orderQ = {}
for (j in range(0, nbP)):
orderQ[j] = int(info[j])
Ci[i] = orderQ
return