Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #1
- x1 = 'Александру'
- x2 = 'Алексу'
- x3 = 'Альберту'
- name1 = 'Александру'
- name2 = 'Алексу'
- name3 = 'Альберту'
- surname1 = 'Вотяку'
- surname2 ='Вотякову'
- surname3 ='Вотяковичу'
- fname = 'Романовичу'
- s1 = f'Диплом с отличием вручается {surname1} {name1} {fname}.'
- s2 = f'Диплом с отличием вручается {surname2} {name2} {fname}.'
- s3 = f'Диплом с отличием вручается {surname3} {name3} {fname}.'
- print(s1)
- print(s2)
- print(s3)
- #2
- a = input()
- b = input()
- c = input()
- s = f'{a}00{b}-00{c}'
- print(s)
- print(f"{input()}{int(input()):04}-{int(input()):03}")
- #3
- a, b = int(input()), int(input())
- print(f"{a:>10}")
- print(f"{b:>10}")
- print(f"{a+b:>10}")
- r, k = 1 + int(input()) / 100, int(input())
- N = 100000000
- for i in range(k):
- N *= r
- print(f"{N:,.2f}")
- #5
- for a in range(1, 101):
- for b in range(1, 101):
- result = a * b
- if "0" in str(result):
- print(f"[DEBUG] {a=} {b=} {result=}")
- #6
- a, b, c, d = list(map(int, input().split()))
- def obfuscateIP(a, b, c, d):
- result = []
- for template in ["{:08b}", "{:b}", "{:o}", "{}", "{:x}"]:
- result.append(".".join([template]*4).format(a, b, c, d))
- return "\n".join(result)
- print(obfuscateIP(a, b, c, d))
Advertisement
Add Comment
Please, Sign In to add comment