output_description: Print the sum of the integers between 1 and N (inclusive), whose sum of digits
  written in base 10 is between A and B (inclusive).
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N A B
attempt: #include <iostream>      // cout, endl, cin
  #include <string>        // string, to_string, stoi
  #include <vector>        // vector
  #include <algorithm>     // min, max, swap, sort, reverse, lower_bound, upper_bound
  #include <utility>       // pair, make_pair
  #include <tuple>         // tuple, make_tuple
  #include <cstdint>       // int64_t, int*_t
  #include <cstdio>        // printf
  #include <map>           // map
  #include <queue>         // queue, priority_queue
  #include <set>           // set
  #include <stack>         // stack
  #include <deque>         // deque
  #include <unordered_map> // unordered_map
  #include <unordered_set> // unordered_set
  #include <bitset>        // bitset
  #include <cctype>        // isupper, islower, isdigit, toupper, tolower
  #include <cmath>
  
  using namespace std;
  typedef long long ll;
  
  #define rep(i, n) for (int i = 0; i < (n); i++)
  #define rep2(i, a, b) for (int i = (a); i < (b); ++i)
  #define all(a) (a).begin(), (a).end()
  
  int main()
  {
          int N, A, B, ans = 0;
          cin >> N >> A >> B;
          rep(i, N + 1)
          {
                  int t = i, cnt = 0;
                  while (t > 0)
                  {
                          cnt += t % 10;
                          t /= 10;
                  }
                  if (A <= cnt && cnt <= B)
                          ans += i;
          }
          cout << ans << endl;
  
          return 0;
  }
  
problem_description: Statement
  
  Find the sum of the integers between 1 and N (inclusive), whose sum of digits
  written in base 10 is between A and B (inclusive).
samples: [{"input": "20 2 5", "output": "84\n    \n\nAmong the integers not greater than 20, the ones whose sums of digits are\nbetween 2 and 5, are: 2,3,4,5,11,12,13,14 and 20. We should print the sum of\nthese, 84.\n\n* * *"}, {"input": "10 1 2", "output": "13\n    \n\n* * *"}, {"input": "100 4 16", "output": "4554"}]