URI Online Judge Solution 2936 How Much Cassava? Using Python Programming Language.
Every year in April, the Curupira, Boitatá, the pink Boto (this one in his man form, as Dona Chica likes it better), Mapinguari and Iara meet at Dona Chica to remember their moments with Mani, the beautiful girl with the white skin. And as it could not be different the main dish of this meeting is the cassava. Each one of them eats one to ten servings of cassava and they always warn Dona. Chica in advance about how many servings they will eat that day. The size of the portion of each is different, but they are always the same. The portions are as follows (in grams):
- Curupira eats 300
- Boitatá eats 1500
- Boto eats 600
- Mapinguari eats 1000
- Iara eats 150
Input
The input consists of 5 integers each representing the portions that the guests of Dona Chica will consume. The first integer represents the portions of Curupira, the second of Boitatá, the third of Boto, the fourth of Mapinguari and the fifth of Iara.
Output
The output consists of a single integer representing how much cassava Dona Chica should prepare in grams. Do not forget the line break after the awnser :).
Input Samples | Output Samples |
1 1 1 1 1 | 3775 |
2 2 2 2 2 | 7325 |
URI 2936 Solution in Python:
A = int(input())
B = int(input())
C = int(input())
D = int(input())
E = int(input())
S = A * 300 + B * 1500+ C *600+ D * 1000 + E * 150 + 225
print(S)
Comments
Post a Comment