complete read function
This commit is contained in:
parent
05581c0c4a
commit
192f6fad2e
22
read.py
22
read.py
|
@ -30,5 +30,25 @@ def Read_input_file(file):
|
||||||
Wp[i] = (int(info[0]), int(info[1]))
|
Wp[i] = (int(info[0]), int(info[1]))
|
||||||
line = readline()
|
line = readline()
|
||||||
info = line.split(' ')
|
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
|
Reference in a new issue