Small error in spacing calculations
This commit is contained in:
parent
68e3b2c1fc
commit
1120649fd0
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -51,7 +51,7 @@ fp.clear()
|
||||||
|
|
||||||
tDigits = 1
|
tDigits = 1
|
||||||
tmp = answerCount
|
tmp = answerCount
|
||||||
while tmp > 10:
|
while tmp > 9:
|
||||||
tmp = tmp / 10
|
tmp = tmp / 10
|
||||||
tDigits += 1
|
tDigits += 1
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ while 1:
|
||||||
answer = queue.pop(0)
|
answer = queue.pop(0)
|
||||||
aDigits = 0
|
aDigits = 0
|
||||||
tmp = i + 1
|
tmp = i + 1
|
||||||
while tmp > 10:
|
while tmp > 9:
|
||||||
aDigits += 1
|
aDigits += 1
|
||||||
tmp = tmp / 10
|
tmp = tmp / 10
|
||||||
digits = tDigits - aDigits
|
digits = tDigits - aDigits
|
||||||
|
|
Loading…
Reference in a new issue