P18243 [GeeksforGeeks] Long long decimal4552
普及-
题目描述

You are simply given two numbers 355 and 113. You just have to find the value of 355/113 upto the decimal k places .

Example 1:
Input: k = 0
Output: 3
Explanation: 355/113 upto 0 decimal place is 3
Example 2:
Input: k = 1
Outptut: 3.1
Explanation: 355/113 upto 1 decimal place is 3.1

Your Task:
You don't need to read or print anything. Your task is to complete the function upto_K_places() which takes k as input parameter and returns 355/113 upto k decimal places in string format.
Expected Time Complexity: O(k)
Expected Space Complexity: O(1)

Constraints:
1 <= k <= 10000

输入格式

见题面

输出格式

见题面

样例输入
k = 0
样例输出
3