Problems(1)
Let S=1,2,22,23,...,22021. Compute the difference between the number of even digits and the number of odd digits across all numbers in S (written as integers in base 10 with no leading zeros). If E is the exact answer to this question and A is your answer, your score is given by max(0,⌊25−2⋅1081∣E−A∣4⌋). number theory