Commit dd409008 authored by Vladislav Kiselev's avatar Vladislav Kiselev

Исправлена ошибка воспроизведения результата жадного алгоритма.

parent 9e3edcf7
......@@ -169,6 +169,11 @@ public class MZnResultsResolver {
cargoOpIntensity = arrays.get("cargo_op_intensity");
} else if (arrays.containsKey("real_cargo_value")) { // Жадный алгоритм.
cargoOpIntensity = arrays.get("real_cargo_value");
for (ArrayList<String> a : cargoOpIntensity) {
for (int i = 0; i < a.size(); i++) {
a.set(i, Integer.toString(Math.abs(Integer.valueOf(a.get(i)))));
}
}
} else {
cargoOpIntensity = new ArrayList<>();
for (int opNo = 0; opNo < opStatus.size(); opNo++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment