Buggy python submission (verdict: Runtime Error):
import sys

x = int(input())

if x >= 2000:
    print(1)
    sys.exit()

for i in range(0,int(x/100)):
    if 100*i <= x <= 105*i:
        break

for a in range (0,i):
    for b in range (0,i):
        for c in range (0,i):
            for d in range (0,i):
                for e in range (0,i):
                    for f in range (0,i):
                        total = 100*a + 101*b + 102*c + 103*d + 104*e + 105*f
                        if total == x:
                            print(1)
                            sys.exit()

print(0)

Fixed submission:
x = int(input())

# 商品の合計がi個の場合の可能なxの範囲
# i=1   100-105
# i=2   200-210
# i=3   300-315
# i=4   400-420
# i=5   500-525
# i=6   600-630
# i=7   700-735
# i=8   800-840
# i=9   900-945
# ...
# i=19 1900-1995
# i=20以降は常に1

i = x // 100

if 100*i <= x <= 105*i:
  print(1)
else:
  print(0)

Buggy python submission (verdict: Time Limit Exceeded):
import sys

x = int(input())

if x >= 2000:
    print(1)
    sys.exit()

for a in range (0,19):
    for b in range (0,19):
        for c in range (0,19):
            for d in range (0,19):
                for e in range (0,19):
                    for f in range (0,19):
                        total = 100*a + 101*b + 102*c + 103*d + 104*e + 105*f
                        if total == x:
                            print(1)
                            sys.exit()

print(0)

Fixed submission:
x = int(input())

# 商品の合計がi個の場合の可能なxの範囲
# i=1   100-105
# i=2   200-210
# i=3   300-315
# i=4   400-420
# i=5   500-525
# i=6   600-630
# i=7   700-735
# i=8   800-840
# i=9   900-945
# ...
# i=19 1900-1995
# i=20以降は常に1

i = x // 100

if 100*i <= x <= 105*i:
  print(1)
else:
  print(0)

Buggy python submission (verdict: Time Limit Exceeded):
import sys

x = int(input())

total = 0

for a in range(0,100):
    for b in range(0,100):
        for c in range(0,100):
            for d in range(0,100):
                for e in range(0,100):
                    for f in range(0,100):
                        total = 100*a + 101*b + 102*c + 103*d + 104*e +105*f
                        if x == total:
                            print(1)
                            sys.exit()

print(0)



Fixed submission:
x = int(input())

# 商品の合計がi個の場合の可能なxの範囲
# i=1   100-105
# i=2   200-210
# i=3   300-315
# i=4   400-420
# i=5   500-525
# i=6   600-630
# i=7   700-735
# i=8   800-840
# i=9   900-945
# ...
# i=19 1900-1995
# i=20以降は常に1

i = x // 100

if 100*i <= x <= 105*i:
  print(1)
else:
  print(0)

Buggy python submission (verdict: Time Limit Exceeded):
import sys

x = int(input())

total = 0

for a in range(0,1000):
    for b in range(0,1000):
        for c in range(0,1000):
            for d in range(0,1000):
                for e in range(0,1000):
                    for f in range(0,1000):
                        total = 100*a + 101*b + 102*c + 103*d + 104*e +105*f
                        if x == total:
                            print(1)
                            sys.exit()

print(0)

Fixed submission:
x = int(input())

# 商品の合計がi個の場合の可能なxの範囲
# i=1   100-105
# i=2   200-210
# i=3   300-315
# i=4   400-420
# i=5   500-525
# i=6   600-630
# i=7   700-735
# i=8   800-840
# i=9   900-945
# ...
# i=19 1900-1995
# i=20以降は常に1

i = x // 100

if 100*i <= x <= 105*i:
  print(1)
else:
  print(0)