Loading

Paste #po46thby7

  1. ///////////
  2. my approach
  3. ///////////
  4. cur_worst: 642 = 2769 * 120 / 517
  5. moved: +2
  6. amount: 2127 = 2769 - 642
  7. ratings_sum: 397 = 517 - 120
  8. cur_worst: 991 = 2127 * 185 / 397
  9. moved: +4
  10. amount: 1136 = 2127 - 991
  11. ratings_sum: 212 = 397 - 185
  12. moved: +4
  13.  
  14. /////////////////
  15. nielsm's approach
  16. /////////////////
  17. cur_worst: 426 = 2769 * 120 * 120 / 93569
  18. moved: +1
  19. amount: 2343 = 2769 - 426
  20. ratings_square_sum: 79169 = 93569 - 120 * 120
  21. cur_worst: 1012 = 2343 * 185 * 185 / 79169
  22. moved: +5
  23. amount: 1331 = 2343 - 1012
  24. ratings_square_sum: 44944 = 79169 - 185 * 185
  25. moved: +5
  26.  
  27.  
  28. ///////////////
  29. master approach
  30. ///////////////
  31. worst_cargo: 1290 = 2769 * 185 / (212 + 185)
  32. moved: 6
  33. amount - worst_cargo: 1479 = 2769 - 1290
  34. moved: +5

Version history

Revision # Author Created at
pnp04lwfn Anonymous 09 Mar 2019, 02:59:42 UTC Diff

Comments