4 ms·
try performing all calculations mod 10.
by malaya_zemlya 7y ago
try performing all calculations mod 10.
- chongli 7y agoI’m not sure how to make use of your hint. I solved the problem for n, the largest number in the sequence of eleven, and a, the number Maria erases, by the following: n - 11 < a < n + 1 11(n + n - 10)/2 = 2012 + a I’m interested to know what other methods may be used to solve it (apart from brute force).