Skip to content / Đến nội dung
ThichHocToan.com

BEBRAS 2017 Grade 7-8 Round 2 Ext Question 13

BEBRAS · BEBRAS 2017 Grade 7-8 Round 2 Ext

Question 13

Alonzo’s computer uses prefix expressions: (max x 1…xn) is the largest input, (min x 1…xn) the smallest, (+ x 1…xn) their sum, and (* x 1…xn) their product. They may be nested: (+ (* 2 3) (+ 1 2)) equals 9. Evaluate (+ (max (min 3 9 2) (* (min 0 4) (max 0 4))) (min (max 3 6) (max 5 7 2))).
  1. 5
  2. 8
  3. 13
  4. 0