title: Gcd Elements Given Range
signature: func gcdElementsGivenRange(n int, m int) int {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual int, expected int) bool {
      return reflect.DeepEqual(actual,expected)
  }
  
  func driver(n int, m int, expected int) string {
      if validateSolution(PLACEHOLDER_FN_NAME(n, m),expected) {
              return "PASSED"
      }
      return "FAILED"
  
  }
  
  func main() {
  
      // Use imports to avoid undefined errors
      var _ = reflect.DeepEqual
      _ = math.Abs
      _ = sort.Sort
      result := ""
      result = driver(57, 
  	57, 57)
      fmt.Printf("TEST-0...%s\n", result)
      
      result = driver(22, 
  	22, 22)
      fmt.Printf("TEST-1...%s\n", result)
      
      result = driver(17, 
  	17, 17)
      fmt.Printf("TEST-2...%s\n", result)
      
      result = driver(74, 
  	74, 74)
      fmt.Printf("TEST-3...%s\n", result)
      
      result = driver(93, 
  	22, 1)
      fmt.Printf("TEST-4...%s\n", result)
      
      result = driver(56, 
  	54, 1)
      fmt.Printf("TEST-5...%s\n", result)
      
      result = driver(5, 
  	33, 1)
      fmt.Printf("TEST-6...%s\n", result)
      
      result = driver(5, 
  	68, 1)
      fmt.Printf("TEST-7...%s\n", result)
      
      result = driver(9, 
  	75, 1)
      fmt.Printf("TEST-8...%s\n", result)
      
      result = driver(98, 
  	21, 1)
      fmt.Printf("TEST-9...%s\n", result)
      
          
  }
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;
  }