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