A Million Digits of Pi
Statement
Goal
Print out the requested digits of pi.As requested, here is a hint in rot13 for those who want the best algorithm pointed out: Puhqabifxlf Nytbevguz
Input
First line: The INDEX of the first digit of pi to print.
Second line: The number of digits to print N .
Second line: The number of digits to print N .
Output
One line with the requested sequence.
Constraints
INDEX < 1,000,000
N <= 50
N <= 50
Example
Input
0 10
Output
3141592653
Tags
Difficulty
Very Hard
Test cases
Test 1 Test
Input
0
10
Output
3141592653
Validator 1 Validator
Input
1243
10
Output
7678374494
Test 2 Test
Input
79100
20
Output
32118636062252701154
Validator 2 Validator
Input
79552
20
Output
37462746172746265824
Test 3 Test
Input
163587
30
Output
088077855566632397283342252706
Validator 3 Validator
Input
213155
30
Output
348018765356776441151647710438
Test 4 Test
Input
294741
40
Output
9037059562142587514293266878284788078762
Validator 4 Validator
Input
292480
40
Output
1804744803809438397548267445519775059366
Test 5 Test
Input
555631
50
Output
05496374484069145828464261242049616787491900287079
Validator 5 Validator
Input
560849
50
Output
85941080031965524777784431018487536837769304812085
Test 6 Test
Input
718341
50
Output
34015238428243963913256867292722487084779696809273
Validator 6 Validator
Input
753823
50
Output
50664375400366598915712966903738260586886220943158
Test 7 Test
Input
999485
50
Output
02833119371611408747270676255856777511995666748615
Validator 7 Validator
Input
998581
50
Output
24509992532017874996366404734770389855873065076038
Solution language
Solution
Stub generator input