comefrom: <doocs>0553.Optimal Division_1.py
code: def optimalDivision( nums: List[int]) -> str:
      n = len(nums)
      if n == 1:
          return str(nums[0])
      if n == 2:
          return f'{nums[0]}/{nums[1]}'
      return f'{nums[0]}/({"/".join(map(str, nums[1:]))})'
masked: def sample_funcname ( var_0 : List [ int ] ) -> str :
      var_5 = len ( var_0 )
      if var_5 == 1 :
          return str ( var_0 [ 0 ] )
      if var_5 == 2 :
          return f'{var_0[0]}/{var_0[1]}'
      return f'{var_0[0]}/({"/".join(map(str, var_0[1:]))})'
  