Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid solutions #503

Open
sergerus opened this issue Jun 7, 2017 · 2 comments
Open

Invalid solutions #503

sergerus opened this issue Jun 7, 2017 · 2 comments

Comments

@sergerus
Copy link

sergerus commented Jun 7, 2017

When I see 'Find PI to the Nth Digit' I guess author of solution use aproximate numerical method. In real round(22/7). Did you check code before paste?

@sergerus
Copy link
Author

sergerus commented Jun 7, 2017

@suuuehgi
Copy link

Did you check code before paste?

Afaics not at all:

PI=3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679;
int decimalPlaces;
[...]
cin>>decimalPlaces;
decimalPlaces+=1;
[...]
cout<<setprecision(decimalPlaces)<<PI<<endl;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants