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