#P1727. 计算π
计算π
Description
As the Mid-Autumn Festival arrives, the clattering sounds of bo bing (博饼) are unceasing. Aiyuchou, excited to play bo bing at school, ends up bringing home only "Yi Xiu" and "Er Ju". Furious, Aiyuchou calls Yueluo Wuti: "Hey, help me compute the digits of pi after the decimal point up to places, quickly..." and hangs up, not knowing Yueluo Wuti was about to go to class. Yueluo Wuti then turns to you, asking you to write a program to compute the digits of pi after the decimal point up to places.
Input Format
One line containing an integer .
Output Format
The output contains multiple lines.
On the first line, print the string .
Starting from the second line, output the fractional part of pi. Insert a space after every digits, and insert a newline after every digits.
100
3.
1415926535 8979323846 2643383279 5028841971 6939937510
5820974944 5923078164 0628620899 8628034825 3421170679
Hint
For of the testdata, .
For of the testdata, .
Time limit: test points : second; test point : seconds; test point : seconds; test points : seconds.
Translated by ChatGPT 5
京公网安备 11011102002149号