title: Gcd Elements Given Range
signature: gcd_elements_given_range <- function(n, m) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(n, m, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(n, m), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          57L, 57L, 
          57L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          22L, 22L, 
          22L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          17L, 17L, 
          17L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          74L, 74L, 
          74L
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          93L, 22L, 
          1L
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          56L, 54L, 
          1L
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          5L, 33L, 
          1L
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          5L, 68L, 
          1L
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          9L, 75L, 
          1L
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          98L, 21L, 
          1L
      )))
  
  }
  
  main()
source_py: def gcd_elements_given_range(n, m):
      return (n if (n == m) else 1)
source_cpp: int gcd_elements_given_range(int n, int m) {
    return ( n == m ) ? n : 1;
  }