title: Gcd Elements Given Range
signature: function gcdElementsGivenRange($n, $m) {
test_code: <?php
  
  
  // SOLUTION CODE 
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function validateSolution($actual, $expected){
      return serialize($actual) == serialize($expected);
  }
  
  function driver($n, $m, $expected){
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME($n, $m), $expected)){
          return "PASSED";
        }
        return "FAILED";
      }
      catch (Exception $exception_obj) {
        return get_class($exception_obj);
      }
  }
  
  function main(){
      printf("TEST-0...%s\n",driver(
        57, 57, 
        57));
      
      printf("TEST-1...%s\n",driver(
        22, 22, 
        22));
      
      printf("TEST-2...%s\n",driver(
        17, 17, 
        17));
      
      printf("TEST-3...%s\n",driver(
        74, 74, 
        74));
      
      printf("TEST-4...%s\n",driver(
        93, 22, 
        1));
      
      printf("TEST-5...%s\n",driver(
        56, 54, 
        1));
      
      printf("TEST-6...%s\n",driver(
        5, 33, 
        1));
      
      printf("TEST-7...%s\n",driver(
        5, 68, 
        1));
      
      printf("TEST-8...%s\n",driver(
        9, 75, 
        1));
      
      printf("TEST-9...%s\n",driver(
        98, 21, 
        1));
      
  }
  
  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;
  }