SHARE
TWEET

codeforce - Wizards and Demonstration

jakaria_hossain Apr 10th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top