fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a, b;
  6. cin >> a >> b;
  7. int k, r;
  8. k = b / a;
  9. r = b % a;
  10. cout << k << " " << r;
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
0 22015