title: Gcd Elements Given Range
signature: pub fn gcd_elements_given_range(n: i32, m: i32) -> i32 {
test_code: use std::collections::HashMap;
  use std::collections::HashSet;
  use std::cmp::*;
  use std::collections::*;
  use std::fmt::*; 
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  pub fn validate_solution(actual: i32, expected: i32)->bool{
  return actual==expected
  }
  pub fn driver(n: i32, m: i32, expected: i32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(n, m), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        57, 57, 
        57
      ));
      
      println!("TEST-1...{}", driver(
        22, 22, 
        22
      ));
      
      println!("TEST-2...{}", driver(
        17, 17, 
        17
      ));
      
      println!("TEST-3...{}", driver(
        74, 74, 
        74
      ));
      
      println!("TEST-4...{}", driver(
        93, 22, 
        1
      ));
      
      println!("TEST-5...{}", driver(
        56, 54, 
        1
      ));
      
      println!("TEST-6...{}", driver(
        5, 33, 
        1
      ));
      
      println!("TEST-7...{}", driver(
        5, 68, 
        1
      ));
      
      println!("TEST-8...{}", driver(
        9, 75, 
        1
      ));
      
      println!("TEST-9...{}", driver(
        98, 21, 
        1
      ));
      
  }
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;
  }