Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (liczba[j] == '1')
- {
- if (ladunek + tabWaga[j] < ladownosc)
- {
- profit += tabWartosc[j];
- ladunek += tabWaga[j];
- }
- }
- }
- if (profit > profitMax)
- {
- profitMax = profit;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement