#abc314a. A - 3.14
A - 3.14
Score : points
问题描述
圆周率π精确到第位小数是
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
。
给定一个整数,满足。
请打印出π精确到第位小数的值。
更准确地说,将π的值截断到位小数,并在不移除末尾的0
s的情况下输出结果。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
The number pi to the -th decimal place is
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
.
You are given an integer between and , inclusive.
Print the value of pi to the -th decimal place.
More precisely, truncate the value of pi to decimal places and print the result without removing the trailing 0
s.
Constraints
- is an integer.
Input
The input is given from Standard Input in the following format:
Output
Print the value of pi to the -th decimal place in a single line.
Sample Input 1
2
Sample Output 1
3.14
Truncating the value of pi to decimal places results in 3.14
. Thus, you should print 3.14
.
Sample Input 2
32
Sample Output 2
3.14159265358979323846264338327950
Do not remove the trailing 0
s.
Sample Input 3
100
Sample Output 3
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
update @ 2024/3/10 08:57:17