title: N Th Number Whose Sum Of Digits Is Ten 1
signature: def n_th_number_whose_sum_of_digits_is_ten_1(n):
source_py: def n_th_number_whose_sum_of_digits_is_ten_1(n):
      count = 0
      curr = 19
      while True:
          sum = 0
          x = curr
          while (x > 0):
              sum = (sum + (x % 10))
              x = int((x / 10))
          if (sum == 10):
              count += 1
          if (count == n):
              return curr
          curr += 9
      return (- 1)
source_cpp: int n_th_number_whose_sum_of_digits_is_ten_1(int n) {
    int count = 0;
    for ( int curr = 19;
    ;
    curr += 9 ) {
      int sum = 0;
      for ( int x = curr;
      x > 0;
      x = x / 10 ) sum = sum + x % 10;
      if ( sum == 10 ) count ++;
      if ( count == n ) return curr;
    }
    return - 1;
  }
question_info.test_code: import array
  import bisect
  import collections
  import datetime
  import functools
  import heapq
  import itertools
  import math
  import queue
  import re
  import string
  import sys
  from typing import Any, Dict, List, Optional, Set
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  def validate_solution(actual, expected):
      return actual == expected
  
  def driver(n, expected):
      try:
          if validate_solution(PLACEHOLDER_FN_NAME(
              n),
              expected
          ):
              return "PASSED"
          return "FAILED"
      except Exception as exception_obj:
          return type(exception_obj).__name__
      
  if __name__ == "__main__":
      result = driver(93, 1324)
      print(f"TEST-0...{result}")
  
      result = driver(10, 109)
      print(f"TEST-1...{result}")
  
      result = driver(55, 703)
      print(f"TEST-2...{result}")
  
      result = driver(94, 1333)
      print(f"TEST-3...{result}")
  
      result = driver(2, 28)
      print(f"TEST-4...{result}")
  
      result = driver(5, 55)
      print(f"TEST-5...{result}")
  
      result = driver(37, 406)
      print(f"TEST-6...{result}")
  
      result = driver(4, 46)
      print(f"TEST-7...{result}")
  
      result = driver(11, 118)
      print(f"TEST-8...{result}")
  
      result = driver(46, 523)
      print(f"TEST-9...{result}")
  
      sys.exit(0)
question_info.test_case_ids: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
question_info.entry_fn_name: n_th_number_whose_sum_of_digits_is_ten_1
question_info.test_list: [{"idx": 0, "outputs": 1324, "inputs": {"n": 93}}, {"idx": 1, "outputs": 109, "inputs": {"n": 10}}, {"idx": 2, "outputs": 703, "inputs": {"n": 55}}, {"idx": 3, "outputs": 1333, "inputs": {"n": 94}}, {"idx": 4, "outputs": 28, "inputs": {"n": 2}}, {"idx": 5, "outputs": 55, "inputs": {"n": 5}}, {"idx": 6, "outputs": 406, "inputs": {"n": 37}}, {"idx": 7, "outputs": 46, "inputs": {"n": 4}}, {"idx": 8, "outputs": 118, "inputs": {"n": 11}}, {"idx": 9, "outputs": 523, "inputs": {"n": 46}}]
question_info.entry_cls_name: Solution