Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1.  
  2. f=open("date.in", "r")
  3. g=open("date1.out", "w")
  4. h=open("date2.out", "w")
  5. y=[]
  6. for x in f:
  7. y.append(x)
  8. z=y
  9. z.sort()
  10. for i in z:
  11. g.write(z[i])
  12. g.write(" ")
  13. for i in y:
  14. h.write(y[i])
  15. h.write(" ")
  16.  
  17. oglindit = 0
  18. while y[i]!=0:
  19. oglindit = oglindit*10 + y[i]%10
  20. y[i] = n//10
  21.  
  22. h.write(oglindit)
  23. h.write("\n")
  24.  
  25.  
  26.  
  27. f.close()
  28. g.close()
  29. h.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement