Buggy python submission (verdict: Runtime Error):
Last login: Mon Jun 24 15:45:40 on ttys001

okazaki@shinji-2(16:27:24) ~
% ls                                                                       [~]
#.zshrc#        Downloads       Pictures        Untitled2.ipynb
Applications    Library         Public          anaconda3
Desktop         Movies          Untitled.ipynb  play
Documents       Music           Untitled1.ipynb

okazaki@shinji-2(16:27:27) ~
% mkdir prokon                                                             [~]

okazaki@shinji-2(16:28:18) ~
% cd prokon                                                                [~]

okazaki@shinji-2(16:28:23) ~/prokon
% ls                                                                  [prokon]

okazaki@shinji-2(16:28:24) ~/prokon
% mkdir 20190624                                                      [prokon]

okazaki@shinji-2(16:28:36) ~/prokon
% ls                                                                  [prokon]
20190624

okazaki@shinji-2(16:30:19) ~/prokon
% cd ..                                                               [prokon]

okazaki@shinji-2(16:30:21) ~
% ls                                                                       [~]
#.zshrc#        Downloads       Pictures        Untitled2.ipynb
Applications    Library         Public          anaconda3
Desktop         Movies          Untitled.ipynb  play
Documents       Music           Untitled1.ipynb prokon

okazaki@shinji-2(16:30:29) ~
% cd prokon                                                                [~]

okazaki@shinji-2(16:30:33) ~/prokon
% ls                                                                  [prokon]
20190624

okazaki@shinji-2(16:30:35) ~/prokon
% rmdir 20190624                                                      [prokon]

okazaki@shinji-2(16:30:42) ~/prokon
% ls                                                                  [prokon]

okazaki@shinji-2(16:30:44) ~/prokon
% ls                                                                  [prokon]

okazaki@shinji-2(16:31:36) ~/prokon
% mkdir 083                                                           [prokon]

okazaki@shinji-2(16:31:41) ~/prokon
% mkdir 088                                                           [prokon]

okazaki@shinji-2(16:31:48) ~/prokon
% mkdir 085                                                           [prokon]

okazaki@shinji-2(16:31:56) ~/prokon
% ls                                                                  [prokon]
083 085 088

okazaki@shinji-2(16:31:58) ~/prokon
% cd 083                                                              [prokon]

okazaki@shinji-2(16:32:03) ~/prokon/083
% emacs b.py                                                             [083]

okazaki@shinji-2(16:36:04) ~/prokon/083
% b.py                                                                   [083]
zsh: command not found: b.py

okazaki@shinji-2(16:36:10) ~/prokon/083
% python b.py                                                            [083]
Traceback (most recent call last):
  File "b.py", line 1, in <module>
    N,A,B = map(char,input().split())
NameError: name 'char' is not defined

okazaki@shinji-2(16:36:19) ~/prokon/083
% emacs b.py                                                             [083]

okazaki@shinji-2(16:38:03) ~/prokon/083
% python b.py                                                            [083]
\  File "b.py", line 5
    for i in 10x:
               ^
SyntaxError: invalid syntax

okazaki@shinji-2(16:38:04) ~/prokon/083
% emacs b.py                                                             [083]

okazaki@shinji-2(16:38:17) ~/prokon/083
% python b.py                                                            [083]
10
3 5
Traceback (most recent call last):
  File "b.py", line 5, in <module>
    for i in 10:
TypeError: 'int' object is not iterable

okazaki@shinji-2(16:38:25) ~/prokon/083
% emacs b.py                                                             [083]

okazaki@shinji-2(16:39:02) ~/prokon/083
% python b.py                                                            [083]
10
2
Traceback (most recent call last):
  File "b.py", line 2, in <module>
    A,B = map(int,input().split())
ValueError: not enough values to unpack (expected 2, got 1)

okazaki@shinji-2(16:39:06) ~/prokon/083
% python b.py                                                            [083]
10   
3 4
10
3
4

okazaki@shinji-2(16:39:17) ~/prokon/083
% emacs b.py                                                             [083]

okazaki@shinji-2(16:40:28) ~/prokon/083
% python b.py                                                            [083]
10
3 4
1

okazaki@shinji-2(16:40:35) ~/prokon/083
% python b.py                                                            [083]
28 
3 5
10

okazaki@shinji-2(16:40:49) ~/prokon/083
% emacs b.py                                                             [083]

okazaki@shinji-2(16:44:11) ~/prokon/083
% python b.py                                                            [083]
15
3 4
15

okazaki@shinji-2(16:44:17) ~/prokon/083
% emacs b.py                                                             [083]

okazaki@shinji-2(16:47:38) ~/prokon/083
% emacs b.py                                                             [083]

okazaki@shinji-2(16:47:44) ~/prokon/083
% python b.py                                                            [083]
20
2 5
28

okazaki@shinji-2(16:47:52) ~/prokon/083
% emacs b.py                                                             [083]

okazaki@shinji-2(16:50:33) ~/prokon/083
% python b.py                                                            [083]
20
2 5
40

okazaki@shinji-2(16:50:44) ~/prokon/083
% python b.py                                                            [083]
20 2 5
^Z
zsh: suspended  python b.py

okazaki@shinji-2(16:50:57) ~/prokon/083
% emacs b.py                                                             [083]

okazaki@shinji-2(16:52:11) ~/prokon/083
% python b.py                                                            [083]
20 2 5
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
40

okazaki@shinji-2(16:52:18) ~/prokon/083
% emacs b.py                                                             [083]

okazaki@shinji-2(16:52:39) ~/prokon/083
% python b.py                                                            [083]
20 2 5 
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
190

okazaki@shinji-2(16:52:45) ~/prokon/083
% emacs b.py                                                             [083]

okazaki@shinji-2(16:53:17) ~/prokon/083
% python b.py                                                            [083]
20 2 5
Traceback (most recent call last):
  File "b.py", line 15, in <module>
    keta = sum(list(map(int,str(n))))
NameError: name 'n' is not defined

okazaki@shinji-2(16:53:22) ~/prokon/083
% emacs b.py                                                             [083]

okazaki@shinji-2(16:53:40) ~/prokon/083
% python b.py                                                            [083]
20 2 5
0
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
10
64

okazaki@shinji-2(16:53:43) ~/prokon/083
% emacs b.py                                                             [083]

okazaki@shinji-2(16:54:34) ~/prokon/083
% python b.py                                                            [083]
20 2 5
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
10
2
84

okazaki@shinji-2(16:54:38) ~/prokon/083
% emacs b.py                                                             [083]

okazaki@shinji-2(16:55:45) ~/prokon/083
% python b.py                                                            [083]
20 2 5
2
3
4
5
2
3
4
5
2
84

okazaki@shinji-2(16:55:51) ~/prokon/083
% emacs b.py                                                             [083]

okazaki@shinji-2(16:56:17) ~/prokon/083
% emacs b.py                                                             [083]

N,A,B = map(int,input().split())

count = 0

'''                                                                            
def keta_sum(n):                                                               
    sum = 0                                                                    
    while n>0:                                                                 
        sum += n%10 #対象の桁を加算                                            
        n = n//10 # 次の桁をみる                                               
    return(sum)                                                                
'''

for i in range(N):
    keta = sum(list(map(int,str(i+1))))

    if keta >= A and keta<= B:
      #  print(keta)                                                           
        count += (i+1)

print(count)

Fixed submission:
N,A,B = map(int,input().split())

count = 0

'''                                                                            
def keta_sum(n):                                                               
    sum = 0                                                                    
    while n>0:                                                                 
        sum += n%10 #対象の桁を加算                                            
        n = n//10 # 次の桁をみる                                               
    return(sum)                                                                
'''

for i in range(N):
    keta = sum(list(map(int,str(i+1))))

    if keta >= A and keta<= B:
      #  print(keta)                                                           
        count += (i+1)

print(count)