4 kyu
Calculate k-th digit of π (Pi)
27 of 135groskowski
Description:
The simple task
You have to calculate k-th digit of π, knowing that:
π = 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342...
Make sure to check the anti-cheat rules at the bottom.
Examples
For k = 0:
3.14159265358979323...
^
For k = 6:
3.14159265358979323...
^
Constraints
0 <= k < 10000
Random test cases
1000 tests where 0 <= k < 10000
Anti-cheat
- The only import allowed in Python is
math
- The code length is limited to 2000 characters.
- Words
http
,www
,requests
,gmpy2
andsearch
are banned. Eval
andexec
are banned- Only ASCII characters are allowed
Number Theory
Similar Kata:
Stats:
Created | Oct 24, 2022 |
Published | Oct 25, 2022 |
Warriors Trained | 1401 |
Total Skips | 80 |
Total Code Submissions | 3178 |
Total Times Completed | 135 |
Java Completions | 27 |
Python Completions | 114 |
Total Stars | 64 |
% of votes with a positive feedback rating | 90% of 46 |
Total "Very Satisfied" Votes | 39 |
Total "Somewhat Satisfied" Votes | 5 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 5 |
Average Assessed Rank | 4 kyu |
Highest Assessed Rank | 4 kyu |
Lowest Assessed Rank | 6 kyu |