fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x,k,n,kan,boch;
  6. cin>>x>>k>>n;
  7. kan=x*k;
  8. boch=(x*100)/n;
  9. cout<<boch/kan<<" "<<boch%kan;
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5280KB
stdin
10 4 5
stdout
5 0