stuk06

Untitled

Jun 14th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. heap.enqueue("1:00 pierwszy p1", 1);
  2. heap.enqueue("1:10 drugi p5", 5);
  3. heap.enqueue("1:10 trzeci p2", 2);
  4. heap.enqueue("1:12 czwarty p2", 2);
  5. heap.enqueue("1:20 piąty p3", 3);
  6. heap.enqueue("1:30 szosty p4", 4);
  7.  
  8. output:
  9. 1:10 drugi p5
  10. 1:30 szosty p4
  11. 1:20 piąty p3
  12. 1:12 czwarty p2
  13. 1:10 trzeci p2
  14. 1:00 pierwszy p1
Advertisement
Add Comment
Please, Sign In to add comment