Advertisement
jakaria_hossain

codeforce - Wizards and Demonstration

Apr 10th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define fastread()(ios_base::sync_with_stdio(false),cin.tie(NULL));
  4. int main()
  5. {
  6. int a,b,c;
  7. fastread();
  8. cin>>a>>b>>c;
  9. double x= (double)c*(double)a/100;
  10. int ans= ceil(x);
  11. if(ans>b)ans-=b;
  12. else ans=0;
  13. cout<<ans<<endl;
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement