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