We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I have a solution with a profit of 76,01 for test case 0 but the profit of the expected output { "1 1 6", "2 2", "7 2", "7 3", "10 7", "9 8", "0 0", "0 8 4", "1 9", "5 15", "8 18", "0 0" } is negative: -89.35. Can someone explain why is that an expected output ? (with last line return to HQ which is clearly a loss).
Here is the test case input:
N= 10, BLIMP_COST_PER_MILE = 3; PRICE_DECLINE = 0.95;
final int[][] c = { {1, 1, 30}, {2, 2, 35}, {0, 8, 50}, {7, 2, 20}, {7, 3, 25}, {10, 7, 90}, {9, 8, 35}, {5, 15, 10}, {8, 18, 15}, {1, 9, 60} };
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
TBS Problem
You are viewing a single comment's thread. Return to all comments →
I have a solution with a profit of 76,01 for test case 0 but the profit of the expected output { "1 1 6", "2 2", "7 2", "7 3", "10 7", "9 8", "0 0", "0 8 4", "1 9", "5 15", "8 18", "0 0" } is negative: -89.35. Can someone explain why is that an expected output ? (with last line return to HQ which is clearly a loss). Here is the test case input: N= 10, BLIMP_COST_PER_MILE = 3; PRICE_DECLINE = 0.95; final int[][] c = { {1, 1, 30}, {2, 2, 35}, {0, 8, 50}, {7, 2, 20}, {7, 3, 25}, {10, 7, 90}, {9, 8, 35}, {5, 15, 10}, {8, 18, 15}, {1, 9, 60} };