#E. C++-数据存储与读入-请输入4个正整数a,b,c,n(a,b,c均小于200,n<=6),求a^n+b^n+c^n

    Type: Default 1000ms 256MiB

C++-数据存储与读入-请输入4个正整数a,b,c,n(a,b,c均小于200,n<=6),求a^n+b^n+c^n

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Background

Description

image

Format

Input

Output

Samples

2
3
6
5
8051
100
100
100
6
3000000000000

Limitation

1s, 1024KiB for each test case.