Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import sys
  4. import os
  5. import math
  6.  
  7. infile = sys.stdin
  8. next(infile)
  9. for line in infile:
  10.  
  11. z = line[12:14]
  12. n = line[6:10]
  13. b = line[55:66]
  14.  
  15. print('{0}\t{1}\t{2}'.format(z,n,b) )
  16.  
  17.  
  18. #!/usr/bin/env python
  19.  
  20.  
  21. import sys
  22. power = 0
  23. oldKey = None
  24.  
  25. for line in sys.stdin:
  26. line = line.strip()
  27. keys = line.split()
  28. z = keys[0]
  29. n = keys[1]
  30. b = keys[2]
  31.  
  32. if (int(z) == 12 and (int(n)== 10 or int(n)==11) ):
  33. print('{0}\t{1}\t{2}'.format(z, n, b) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement