Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. a = list(input())
  2. x = 1
  3. for i in range(len(a)):
  4. a[i] = int(a[i])
  5. for i in range(0,len(a),2):
  6. if i+1 == len(a):
  7. break
  8. else:
  9. if (a[i]*10)+a[i+1] > 33:
  10. x = x * 1
  11. else:
  12. if (a[i]*10)+a[i+1] < 10:
  13. x = x*1
  14. else:
  15. x = x*2
  16. kol = x
  17. x = 1
  18. for i in range(1,len(a),2):
  19. if i+1 == len(a):
  20. break
  21. else:
  22. if (a[i]*10)+a[i+1] > 33:
  23. x = x * 1
  24. else:
  25. if (a[i]*10)+a[i+1] < 10:
  26. x = x*1
  27. else:
  28. x = x*2
  29. kol = kol + x
  30. print(kol-1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement