Skip to content

Commit

Permalink
Merge pull request #96 from xhh09a/main
Browse files Browse the repository at this point in the history
Add files via upload
  • Loading branch information
zehengl authored Nov 27, 2023
2 parents b849e6f + f84097a commit b76234d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bestcompression.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
n, b = io.read("*n", "*n")
if (2 ^ (b + 1)) - 1 >= n then
print("yes")
else
print("no")
end
2 changes: 2 additions & 0 deletions bestcompression.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
n, b = [int(d) for d in input().split()]
print("yes" if (2 ** (b + 1)) - 1 >= n else "no")

0 comments on commit b76234d

Please sign in to comment.