yes
Time Limit: 1 seconds
Memory Limit: 128 MB
Rating: 800
Problem StatementAs time continues, heroes are getting more and more obsessed with this quiz. Create an overall score for all supes. To calculate the score: $Score = (Performance + Looks + Power - 1)^3$ to the nearest integer.
InputThe first line has three space-separated integers: $Performance$, $Looks$ and $Power$ $(1 \le Performance, Looks, Power \le 10)$.
OutputOutput $Score$, as described in the Problem Statement.
Sample CasesSample Input 1: 3 9 8 Sample Output 1: 6859 Sample Input 2: 10 10 10 Sample Output 2: 24389Explanation
For the first sample case, you calculate $Score$ using $19^3 = 6859$.
SourcesKL Coding Cup 2022 > Problem 1 > Intermediate League
Submit | Back