Skip to content
Snippets Groups Projects
Commit d190bf46 authored by COUETOUX Basile's avatar COUETOUX Basile
Browse files

Merge branch 'couetoux.b-master-patch-76125' into 'master'

inverse value weight

See merge request !1
parents 5ac29dc1 36bdff98
No related branches found
No related tags found
No related merge requests found
...@@ -17,8 +17,8 @@ public class Reader { ...@@ -17,8 +17,8 @@ public class Reader {
List<Item> items = new ArrayList<>(); List<Item> items = new ArrayList<>();
double weight,value; double weight,value;
while(scanner.hasNext()){ while(scanner.hasNext()){
value = scanner.nextDouble();
weight = scanner.nextDouble(); weight = scanner.nextDouble();
value = scanner.nextDouble();
items.add(new Item(weight,value)); items.add(new Item(weight,value));
} }
return new Instance(bound,items); return new Instance(bound,items);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment