Cleanup
This commit is contained in:
parent
80dfe260f0
commit
e9e1909c88
|
@ -27,8 +27,7 @@ proc p2(c: seq[string]): int =
|
||||||
of 6: 0
|
of 6: 0
|
||||||
of 5: 6
|
of 5: 6
|
||||||
else: 9
|
else: 9
|
||||||
let x = (abs(oLine[1].len() - i) - 1)
|
result += outputVal * int(10 ^ (abs(oLine[1].len() - i) - 1))
|
||||||
result += outputVal * int(10 ^ x)
|
|
||||||
|
|
||||||
# Explanation:
|
# Explanation:
|
||||||
# 1, 7, 8, and 4 are known and may be identified just by length, so we only
|
# 1, 7, 8, and 4 are known and may be identified just by length, so we only
|
||||||
|
|
Loading…
Reference in a new issue