fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x, y;
  6. cin >> x >> y;
  7. if (x) {
  8. int hours = y / x;
  9. if (y % x != 0) {
  10. ++hours;
  11. }
  12. cout << hours;
  13. } else {
  14. cout << "niciodata!";
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 5280KB
stdin
25 101
stdout
5