fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int A,B;
  7. cin >> A >> B;
  8. cout << A/B << " " << A%B << endl;
  9. cout << fixed << setprecision(9) << A*1.0/B;
  10. return 0;
  11. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
48824 22960
48824.700726363