Skip to content

Commit 2e1323c

Browse files
committed
QWRF
1 parent c88a9d6 commit 2e1323c

File tree

1 file changed

+1
-1
lines changed
  • informatics/sem1/lab2

1 file changed

+1
-1
lines changed

informatics/sem1/lab2/2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def main():
1313
validator = Validator(int(inp_bits))
1414
_ = (
1515
int(inp_bits),
16-
int(log2(int(inp_bits) + 1))
16+
int(inp_bits) - int(log2(int(inp_bits)+1))
1717
)
1818

1919
inp = input(f"Введите классический код хэмминга {str(_).replace(", ", ";")}: ")

0 commit comments

Comments
 (0)