Back
Close
  • 15

Statement

 Goal

Print out the requested digits of pi.

Hint: The easiest way to solve this is to just store the first 295k digits of pi in your program. But you are limited to 100k characters, so it is 'easy' but not 'very easy'.
Input
First line: The INDEX of the first digit of pi to print.
Second line: The number of digits to print N .
Output
One line with the requested sequence.
Constraints
INDEX < 295,000
N <= 50
Example
Input
0
10
Output
3141592653

A higher resolution is required to access the IDE