Skip to content

Conversation

@nsnk
Copy link
Contributor

@nsnk nsnk commented Jan 25, 2019

No description provided.

while n>2
{
tot=tot+n/3;
rap=n-n/3*3+n/3;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This formula simplifies to
n/3

Please check again if the logic is correct.

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

Successfully merging this pull request may close these issues.

2 participants