B. Thứ tự thực hiện phép tính


Submit solution

Points: 50
Time limit: 50.0s
Memory limit: 256M

Problem type

Nhập các số nguyên a, b, c, d.

Tính kết quả biểu thức:

(a + b) × (c - d)

Đầu vào:

  • Bốn số nguyên.

Đầu ra:

  • Một số nguyên.

Testcase:

Input Output Giải thích
2 3 5 1 20 (2 + 3) × (5 - 1) = 5 × 4 = 20
1 2 6 2 12 (1 + 2) × (6 - 2) = 3 × 4 = 12

Comments

There are no comments at the moment.