Advertisement
Guest User

Untitled

a guest
Oct 5th, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from heapq import heappush, heappop
  4.  
  5. q = []
  6. for i in range(10**7):
  7. heappush(q,[i, 10*i])
  8.  
  9. while q != []:
  10. x,y = heappop(q)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement