title: Number Jump Required Given Length Reach Point Form D 0 Origin 2D Plane
signature: number_jump_required_given_length_reach_point_form_d_0_origin_2d_plane <- function(a, b, d) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      abs(actual - expected) < 1e-09
  }
  
  driver <- function(a, b, d, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(a, b, d), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          35L, 8L, 77L, 
          3.1714285714285713
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          85L, 55L, 33L, 
          2.0
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          22L, 23L, 64L, 
          3.739130434782609
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          8L, 43L, 29L, 
          2.0
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          12L, 64L, 11L, 
          2.0
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          58L, 25L, 26L, 
          2.0
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          65L, 4L, 28L, 
          2.0
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          10L, 95L, 55L, 
          2.0
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          23L, 13L, 54L, 
          3.3043478260869565
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          5L, 50L, 71L, 
          2.4
      )))
  
  }
  
  main()
source_py: def number_jump_required_given_length_reach_point_form_d_0_origin_2d_plane(a, b, d):
      temp = a
      a = min(a, b)
      b = max(temp, b)
      if (d >= b):
          return (((d + b) - 1) / b)
      if (d == 0):
          return 0
      if (d == a):
          return 1
      return 2
source_cpp: int number_jump_required_given_length_reach_point_form_d_0_origin_2d_plane(int a, int b, int d) {
    int temp = a;
    a = min ( a, b );
    b = max ( temp, b );
    if ( d >= b ) return ( d + b - 1 ) / b;
    if ( d == 0 ) return 0;
    if ( d == a ) return 1;
    return 2;
  }