ENG  RUS Timus Online Judge
Online Judge
Problems
Authors
Online contests
Site news
Webboard
Problem set
Submit solution
Judge status
Guide
Register
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