We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c88a9d6 commit 2e1323cCopy full SHA for 2e1323c
informatics/sem1/lab2/2.py
@@ -13,7 +13,7 @@ def main():
13
validator = Validator(int(inp_bits))
14
_ = (
15
int(inp_bits),
16
- int(log2(int(inp_bits) + 1))
+ int(inp_bits) - int(log2(int(inp_bits)+1))
17
)
18
19
inp = input(f"Введите классический код хэмминга {str(_).replace(", ", ";")}: ")
0 commit comments