103140: [Atcoder]ABC314 A - 3.14
Description
Score : $100$ points
Problem Statement
The number pi to the $100$-th decimal place is
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
.
You are given an integer $N$ between $1$ and $100$, inclusive.
Print the value of pi to the $N$-th decimal place.
More precisely, truncate the value of pi to $N$ decimal places and print the result without removing the trailing 0
s.
Constraints
- $1\leq N\leq 100$
- $N$ is an integer.
Input
The input is given from Standard Input in the following format:
$N$
Output
Print the value of pi to the $N$-th decimal place in a single line.
Sample Input 1
2
Sample Output 1
3.14
Truncating the value of pi to $2$ 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
Output
问题描述
将圆周率π精确到小数点后$100$位是:
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
.
给你一个介于$1$和$100$之间的整数$N$(包括$1$和$100$)。
将圆周率π精确到小数点后$N$位并打印结果,不要删除尾随的0
。
约束条件
- $1\leq N\leq 100$
- $N$是一个整数。
输入
输入从标准输入按以下格式给出:
$N$
输出
在一行中打印圆周率π精确到小数点后$N$位的结果。
样例输入1
2
样例输出1
3.14
将圆周率π精确到小数点后$2$位的结果是3.14
。因此,你应该打印3.14
。
样例输入2
32
样例输出2
3.14159265358979323846264338327950
不要删除尾随的0
。
样例输入3
100
样例输出3
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679