Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. f = open("ips.txt")
  2. count = 0
  3. for i in f:
  4. line = i.split("/")
  5. count += 2 ** (32 - int(line[1]))
  6. print(count)
  7.  
  8. #output
  9. #15832568
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement