ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1490. Fire Circle

Interesting: Approaching to pi
Posted by Khranovsky`~ 28 Dec 2017 02:30
It's interesting that answer approaches to pi number without decimal point. If you'll increase r, answer becomes more and more precisely. For example: answer for r = 1e5 is 31416325412, but for r = 1e9 (although r < 1e5) is 3141592657589764752, when pi equals to 3.141592653
Anybody knows why it's happens?

Edited by author 28.12.2017 02:31

Edited by author 28.12.2017 02:31
Re: Interesting: Approaching to pi
Posted by MassterMax🤔`~ 3 Apr 2018 15:11
Square of cirlce is Pi*r*r. Also it tends to some amount of little squares, because big cirlce is more bigger than one little square. Actually we have then amount of squares = pi*r*r on the big r. If r=10^k then pi*r*r=pi*10^2k=amount of squares
Sorry for bad english=)

Edited by author 03.04.2018 15:12

Edited by author 03.04.2018 15:12