Format integers Sergey Svistunov

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.

Date AuthorLanguageStatus Score
Oct 4, 2022 12:19Robert BurkeRobert BurkeCPPg++9.3.0Success55,383
Oct 4, 2022 12:19Robert BurkeRobert BurkeCPPg++9.3.0Success55,395
Oct 4, 2022 12:16Robert BurkeRobert BurkeCPPg++9.3.0Success55,378+0.03 RP
Oct 4, 2022 11:58Robert BurkeRobert BurkeCPPg++9.3.0Success55,961
Oct 4, 2022 11:58Robert BurkeRobert BurkeCPPg++9.3.0Success56,001
Oct 4, 2022 11:53Robert BurkeRobert BurkeCPPg++9.3.0Success55,386+15.41 RP
Oct 4, 2022 11:52Robert BurkeRobert BurkeCPPg++9.3.0Success61,621
Oct 4, 2022 11:52Robert BurkeRobert BurkeCPPg++9.3.0Success61,268
Oct 4, 2022 11:51Robert BurkeRobert BurkeCPPg++9.3.0Success61,669
Oct 4, 2022 11:49Robert BurkeRobert BurkeCPPg++9.3.0Success61,637
Oct 4, 2022 11:48Robert BurkeRobert BurkeCPPg++9.3.0Success61,617
Oct 4, 2022 11:47Robert BurkeRobert BurkeCPPg++9.3.0Success61,635
Oct 4, 2022 11:46Robert BurkeRobert BurkeCPPg++9.3.0Success62,375
Oct 4, 2022 11:46Robert BurkeRobert BurkeCPPg++9.3.0Success61,618
Oct 4, 2022 11:45Robert BurkeRobert BurkeCPPg++9.3.0Success61,615
Oct 4, 2022 11:45Robert BurkeRobert BurkeCPPg++9.3.0Success61,616
Oct 4, 2022 11:44Robert BurkeRobert BurkeCPPg++9.3.0Success62,333
Oct 4, 2022 11:44Robert BurkeRobert BurkeCPPg++9.3.0Success61,623
Oct 4, 2022 11:43Robert BurkeRobert BurkeCPPg++9.3.0Success61,514
Oct 4, 2022 10:16Robert BurkeRobert BurkeCPPg++9.3.0Success61,508
Oct 4, 2022 10:11Robert BurkeRobert BurkeCPPg++9.3.0Success61,515
Oct 4, 2022 10:04Robert BurkeRobert BurkeCPPg++9.3.0Error
Oct 4, 2022 09:38Robert BurkeRobert BurkeCPPg++9.3.0Success60,675
Oct 4, 2022 09:38Robert BurkeRobert BurkeCPPg++9.3.0Error
Oct 4, 2022 09:36Robert BurkeRobert BurkeCPPg++9.3.0Error
Oct 4, 2022 09:34Sam HughesSam HughesCPPg++9.3.0Success650,443+13.00 RP
Oct 4, 2022 09:29Robert BurkeRobert BurkeCPPg++9.3.0Success60,622
Oct 4, 2022 09:28Robert BurkeRobert BurkeCPPg++9.3.0Error
Oct 4, 2022 09:21Robert BurkeRobert BurkeCPPg++9.3.0Success60,553+0.56 RP
Oct 4, 2022 09:20Sam HughesSam HughesCPPg++9.3.0Success4,203,812+2.38 RP
Oct 4, 2022 09:17Robert BurkeRobert BurkeCPPg++9.3.0Error
Oct 4, 2022 09:11Robert BurkeRobert BurkeCPPg++9.3.0Success62,176
Oct 4, 2022 09:10Robert BurkeRobert BurkeCPPg++9.3.0Error
Oct 4, 2022 03:54Bernard TeoBernard TeoCPPg++9.3.0Success59,357+0.74 RP
Oct 4, 2022 03:54Bernard TeoBernard TeoCPPg++9.3.0Success59,619+0.61 RP
Oct 4, 2022 03:53Bernard TeoBernard TeoCPPg++9.3.0Error
Oct 4, 2022 03:50Bernard TeoBernard TeoCPPg++9.3.0Success59,838+1.19 RP
Oct 3, 2022 05:01Bernard TeoBernard TeoCPPg++9.3.0Success60,278
Oct 3, 2022 04:43Bernard TeoBernard TeoCPPg++9.3.0Success60,270
Oct 3, 2022 04:42Bernard TeoBernard TeoCPPg++9.3.0Error
Oct 3, 2022 04:41Bernard TeoBernard TeoCPPg++9.3.0Success60,267+0.05 RP
Oct 3, 2022 04:40Bernard TeoBernard TeoCPPg++9.3.0Error
Oct 3, 2022 04:23Bernard TeoBernard TeoCPPg++9.3.0Success60,597
Oct 3, 2022 04:21Bernard TeoBernard TeoCPPg++9.3.0Success61,308
Oct 3, 2022 04:13Bernard TeoBernard TeoCPPg++9.3.0Success60,286+9.10 RP
Oct 3, 2022 04:01Bernard TeoBernard TeoCPPg++9.3.0Success63,784+9.03 RP
Oct 3, 2022 03:59Bernard TeoBernard TeoCPPg++9.3.0Success67,684+0.96 RP
Oct 3, 2022 03:33Bernard TeoBernard TeoCPPg++9.3.0Error
Oct 3, 2022 03:30Bernard TeoBernard TeoCPPg++9.3.0Error
Oct 3, 2022 03:26Bernard TeoBernard TeoCPPg++9.3.0Error
Oct 2, 2022 04:59Bernard TeoBernard TeoCPPg++9.3.0Error
Oct 2, 2022 04:49Bernard TeoBernard TeoCPPg++9.3.0Error
Oct 2, 2022 04:29Bernard TeoBernard TeoCPPg++9.3.0Success71,203
Oct 2, 2022 04:27Bernard TeoBernard TeoCPPg++9.3.0Success71,235
Sep 30, 2022 03:55Bernard TeoBernard TeoCPPg++9.3.0Success74,249
Sep 22, 2022 17:51Bernard TeoBernard TeoCPPg++9.3.0Success71,206
Sep 22, 2022 17:50Bernard TeoBernard TeoCPPg++9.3.0Success71,037
Sep 22, 2022 17:50Bernard TeoBernard TeoCPPg++9.3.0Success68,128+6.85 RP
Sep 22, 2022 17:47Bernard TeoBernard TeoCPPg++9.3.0Success73,168
Sep 22, 2022 12:24Bernard TeoBernard TeoCPPg++9.3.0Success71,465+0.77 RP
Sep 22, 2022 12:20Bernard TeoBernard TeoCPPg++9.3.0Success71,858+1.18 RP
Sep 22, 2022 12:19Bernard TeoBernard TeoCPPg++9.3.0Success81,309
Sep 22, 2022 12:17Bernard TeoBernard TeoCPPg++9.3.0Success76,188
Sep 22, 2022 12:05Bernard TeoBernard TeoCPPg++9.3.0Success73,595
Sep 20, 2022 17:58Bernard TeoBernard TeoCPPg++9.3.0Success74,013
Sep 20, 2022 17:57Bernard TeoBernard TeoCPPg++9.3.0Success75,592
Sep 20, 2022 17:41Bernard TeoBernard TeoCPPg++9.3.0Success72,470+3.13 RP
Sep 20, 2022 17:37Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 17:35Bernard TeoBernard TeoCPPg++9.3.0Success74,182
Sep 20, 2022 17:34Bernard TeoBernard TeoCPPg++9.3.0Success74,152+10.21 RP
Sep 20, 2022 17:33Bernard TeoBernard TeoCPPg++9.3.0Success80,227+15.24 RP
Sep 20, 2022 17:23Bernard TeoBernard TeoCPPg++9.3.0Success91,403+55.06 RP
Sep 20, 2022 17:22Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 17:10Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 16:52Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 16:45Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 16:39Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 16:20Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 16:16Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 16:12Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 16:08Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 16:07Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 16:03Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 16:01Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 15:59Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 15:57Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 15:55Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 15:40Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 15:39Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 15:38Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 15:35Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 15:34Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 20, 2022 15:33Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 19, 2022 16:21Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 19, 2022 16:21Bernard TeoBernard TeoCPPg++9.3.0Success183,998+6.56 RP
Sep 19, 2022 16:17Bernard TeoBernard TeoCPPg++9.3.0Success209,253+1.27 RP
Sep 19, 2022 14:45Bernard TeoBernard TeoCPPg++9.3.0Success214,986+46.51 RP
Sep 19, 2022 14:43Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 19, 2022 14:39Bernard TeoBernard TeoCPPg++9.3.0Error
Sep 19, 2022 14:32Bernard TeoBernard TeoCPPg++9.3.0Error