Submit | All submissions | Best solutions | Back to list |
EIFREEZER - Refrigerator |
Dan need to buy a refrigerator with a capacity of L (liters) to store food.
The bigger surface refrigerator, it will drain faster. Therefore, Dan want to buy the smallest surface refrigerator(The store has all the size and capacity ).
Input
One Integer L(1 <= L <= 10^6)
Output
3 integer c, b,a (unit: dm) , and a <= b <=c. If there are many answers, select 3 numbers a, b, c in order of largest a, largest b.
Example
Input: 12 Output: 3 2 2
Input: 13 Output: 13 1 1
Dan need to buy a refrigerator with a capacity of L (liters) to store food.
The bigger surface refrigerator, it will drain faster. Therefore, Dan want to buy the smallest surface refrigerator(
Added by: | Ha Minh Ngoc |
Date: | 2015-08-22 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | CSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG FSHARP GO JAVA JS-MONKEY NODEJS PHP PYTHON PYPY PYPY3 PYTHON3 RUBY SQLITE SWIFT VB.NET |