Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/McNuggets-problem/Julia/mcnuggets-problem.julia
Normal file
9
Task/McNuggets-problem/Julia/mcnuggets-problem.julia
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
function mcnuggets(max)
|
||||
b = BitSet(1:max)
|
||||
for i in 0:6:max, j in 0:9:max, k in 0:20:max
|
||||
delete!(b, i + j + k)
|
||||
end
|
||||
maximum(b)
|
||||
end
|
||||
|
||||
println(mcnuggets(100))
|
||||
Loading…
Add table
Add a link
Reference in a new issue