Write a program that calculates the volume and surface area of a cube given its side length.
Input
An integer representing the length of a side of the cube.
Output
Two integers separated by a space:
The volume of the cube and the surface area of the cube.
Constraints
The side length of the cube is within the range of 1 to 1000.
Sample Test Cases
Input | Output | |
---|---|---|
5 | 125 150 |
Scoring: Per Subtask
Authored by hclee
Appeared in 2024 Wah Yan Interschool Olympiad in Informatics 🤯🥷⚡🧠🏆