This repository has been archived on 2025-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Files
python_it_top/file1.py
2025-09-16 13:22:24 +05:00

7 lines
92 B
Python

n = int(input())
bit_num = int(input())
n = n | (1 << bit_num - 1)
i = int(n ~ 1)
print(i)