Format integers 
Compute a checksum over the decimal representations of binary integers as fast as possible.
Input: 250 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).
Output: A uint64 checksum computed as:
CRC = sum of number_crc(n) for each n
where number_crc(n) converts n to its decimal string and sums ascii(digit) * position over each digit (0-indexed from the left).
Example: For n = 42, the decimal string is "42", so number_crc(42) = ascii('4') * 0 + ascii('2') * 1 = 52 * 0 + 50 * 1 = 50.
Source Code
Source code access is restricted. Log in to request access.
Challenge History
No challenges yet.
Run Statistics
| # | Date | Score | Wall Time | CPU User | CPU System | Memory | Error | |
|---|---|---|---|---|---|---|---|---|
| 1 | May 4, 2021 20:45 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530156214467 ", got "106030327212 " | |
| 2 | May 4, 2021 13:13 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530159026264 ", got "106033001694 " | |
| 3 | May 4, 2021 13:14 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530156618531 ", got "106030765891 " | |
| 4 | May 4, 2021 13:14 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530155613796 ", got "106030526575 " | |
| 5 | May 4, 2021 13:14 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530156856884 ", got "106029257872 " | |
| 6 | May 4, 2021 13:14 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530156129883 ", got "106030057735 " | |
| 7 | May 4, 2021 13:14 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530156777096 ", got "106033509359 " | |
| 8 | May 4, 2021 13:14 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530156292855 ", got "106030325117 " | |
| 9 | May 4, 2021 13:14 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530154843432 ", got "106032471313 " | |
| 10 | May 4, 2021 13:13 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530157695795 ", got "106030780772 " | |
| 11 | May 4, 2021 20:45 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530155285901 ", got "106030633137 " | |
| 12 | May 4, 2021 20:46 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530156520197 ", got "106032362141 " | |
| 13 | May 4, 2021 20:46 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530156815051 ", got "106032044956 " | |
| 14 | May 4, 2021 20:46 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530156975202 ", got "106032113535 " | |
| 15 | May 4, 2021 22:56 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530156730767 ", got "106032386681 " | |
| 16 | May 4, 2021 22:56 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530155746401 ", got "106031521173 " | |
| 17 | May 4, 2021 22:56 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530156896339 ", got "106033166875 " | |
| 18 | May 5, 2021 20:51 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530158224488 ", got "106032113883 " | |
| 19 | May 3, 2021 20:34 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530157429273 ", got "106032460248 " | |
| 20 | May 3, 2021 18:23 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530155329119 ", got "106030827839 " | |
| 21 | May 3, 2021 18:34 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530158966946 ", got "106030389953 " | |
| 22 | May 3, 2021 18:35 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530157699907 ", got "106030526286 " | |
| 23 | May 3, 2021 18:35 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530156917174 ", got "106032190979 " | |
| 24 | May 3, 2021 18:35 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530155194871 ", got "106029929770 " | |
| 25 | May 3, 2021 18:35 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530156376372 ", got "106031988667 " | |
| 26 | May 3, 2021 18:35 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530157851848 ", got "106030352265 " | |
| 27 | May 3, 2021 20:33 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530157953935 ", got "106029904832 " | |
| 28 | May 3, 2021 18:19 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530155769000 ", got "106030354038 " | |
| 29 | May 3, 2021 20:34 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530156823454 ", got "106032037873 " | |
| 30 | May 3, 2021 20:34 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530156628249 ", got "106029022224 " | |
| 31 | May 3, 2021 20:34 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530159443534 ", got "106030020708 " | |
| 32 | May 3, 2021 20:34 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530156610014 ", got "106032252789 " | |
| 33 | May 4, 2021 12:43 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530159556695 ", got "106030445984 " | |
| 34 | May 4, 2021 13:13 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530158037314 ", got "106032547791 " | |
| 35 | May 4, 2021 13:13 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530155526497 ", got "106033395145 " | |
| 36 | May 4, 2021 13:13 | 0 | 0 | 0 | 0 | 0 | Wrong answer: expected "530157330139 ", got "106030025563 " |