Skip to content

Instantly share code, notes, and snippets.

@hnq90
Created June 15, 2015 06:33
Show Gist options
  • Select an option

  • Save hnq90/83d266fb79f63fbe280d to your computer and use it in GitHub Desktop.

Select an option

Save hnq90/83d266fb79f63fbe280d to your computer and use it in GitHub Desktop.
# http://vietnamnet.vn/vn/giao-duc/238840/bao-anh-cong-bo-dap-an-bai-toan-lop-3-cua-viet-nam.html
Array(1..9).permutation {|n| p n if n[0]+13*n[1]/n[2]+n[3]+12*n[4]-n[5]-11+n[6]*n[7]/n[8]-10 == 66}
@oanhnn

oanhnn commented Jun 18, 2015

Copy link
Copy Markdown

Cái bài này sử dụng tính chẵn lẻ, dấu hiệu chia hết, lớn hơn, nhỏ hơn để suy luận cũng ra. Nhưng mà tóm lại là ko phù hợp với học sinh lớp 3 bình thường 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment