imariia777

Untitled

Oct 28th, 2023
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.35 KB | None | 0 0
  1. #1
  2.  
  3. x1 = 'Александру'
  4. x2 = 'Алексу'
  5. x3 = 'Альберту'
  6. name1 = 'Александру'
  7. name2 = 'Алексу'
  8. name3 = 'Альберту'
  9. surname1 = 'Вотяку'
  10. surname2 ='Вотякову'
  11. surname3 ='Вотяковичу'
  12. fname = 'Романовичу'
  13. s1 = f'Диплом с отличием вручается {surname1} {name1} {fname}.'
  14. s2 = f'Диплом с отличием вручается {surname2} {name2} {fname}.'
  15. s3 = f'Диплом с отличием вручается {surname3} {name3} {fname}.'
  16. print(s1)
  17. print(s2)
  18. print(s3)
  19.  
  20. #2
  21. a = input()
  22. b = input()
  23. c = input()
  24. s = f'{a}00{b}-00{c}'
  25. print(s)
  26. print(f"{input()}{int(input()):04}-{int(input()):03}")
  27.  
  28. #3
  29. a, b = int(input()), int(input())
  30. print(f"{a:>10}")
  31. print(f"{b:>10}")
  32. print(f"{a+b:>10}")
  33.  
  34. r, k = 1 + int(input()) / 100, int(input())
  35.   N = 100000000
  36.   for i in range(k):
  37.       N *= r
  38.   print(f"{N:,.2f}")
  39.  
  40.  
  41. #5
  42. for a in range(1, 101):
  43.   for b in range(1, 101):
  44.       result = a * b
  45.       if "0" in str(result):
  46.           print(f"[DEBUG] {a=} {b=} {result=}")
  47.  
  48.  
  49. #6
  50. a, b, c, d = list(map(int, input().split()))
  51. def obfuscateIP(a, b, c, d):
  52.   result = []
  53.   for template in ["{:08b}", "{:b}", "{:o}", "{}", "{:x}"]:
  54.       result.append(".".join([template]*4).format(a, b, c, d))
  55.   return "\n".join(result)
  56. print(obfuscateIP(a, b, c, d))
Advertisement
Add Comment
Please, Sign In to add comment