Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- from heapq import heappush, heappop
- q = []
- for i in range(10**7):
- heappush(q,[i, 10*i])
- while q != []:
- x,y = heappop(q)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement