Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int p;
- long long int x;
- scanf("%lld%d",&x,&p);
- long long int t=x;
- while(x)
- {
- x=((x*100)-(x*p))/100;
- t+=x;
- }
- printf("%lld",t);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement