fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. typedef long long ll;
  4.  
  5. void fastIO()
  6. {
  7. ios_base::sync_with_stdio(false);
  8. cin.tie(nullptr);
  9. cout.tie(nullptr);
  10. }
  11.  
  12. int main()
  13. {
  14.  
  15. fastIO();
  16. int h, a;
  17. cin >> h >> a;
  18. cout << h / a << endl;
  19.  
  20. if (h % a != 0)
  21. cout << (h% a) + 1 << endl;
  22.  
  23. return 0;
  24. }
Success #stdin #stdout 0s 5312KB
stdin
Standard input is empty
stdout
-33742
-29719