Phép tính #4

View as PDF

Points: 100 Time limit: 1.0s Memory limit: 1G Input: stdin Output: stdout

Nhập vào 4 số nguyên \(a, b, c, d\). Tính \(a^b + c^d\)

Input

  • 4 số nguyên \(a, b, c, d\). \((a^b + c^d \leq 10^9)\).

Output

  • In ra kết quả.
Test 1
Input
2 8 6 1
Output
262

Comments

There are no comments at the moment.