In order to read us, it is necessary to understand our organization: -First line has the number "n" of tasks/activities of this instance; -From 2nd line until line "n+1", there are the cost and the profit of each task (two integer numbers per line); -Second line refers to task 1, 3rd line refers to task 2, and so on... -At line "n+2", there is the initial amount of resources (Q0); -At line "n+3", there is the amount of time units, when tasks can be activated; -From line "n+4", until the end of file, the dependences between tasks are listed; -Each line has a predecessor task and a sucessor task, in other words, an arc of tasks graph;