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
Feb 18, 2023 20:45LiamLiamCPPg++9.3.0Error
Feb 18, 2023 20:41LiamLiamCPPg++9.3.0Error
Feb 18, 2023 20:41LiamLiamCPPg++9.3.0Error
Feb 18, 2023 20:34LiamLiamCPPg++9.3.0Success3,742,991+1.07 RP
Feb 18, 2023 20:33LiamLiamCPPg++9.3.0Error
Feb 18, 2023 20:32LiamLiamCPPg++9.3.0Error
Feb 18, 2023 20:29LiamLiamCPPg++9.3.0Error
Feb 15, 2023 19:47LiamLiamCPPclang++10.0.0Success6,233,115+0.01 RP
Feb 15, 2023 19:47LiamLiamCPPg++9.3.0Success6,285,179+1.59 RP
Dec 28, 2022 10:11Robert BurkeRobert BurkeCPPg++9.3.0Success60,989
Nov 29, 2022 08:20apuxbtapuxbtCPPg++9.3.0Success627,070
Nov 29, 2022 08:17apuxbtapuxbtCPPg++9.3.0Success627,143+0.65 RP
Nov 29, 2022 08:16apuxbtapuxbtCPPg++9.3.0Success853,847
Nov 29, 2022 08:14apuxbtapuxbtCPPg++9.3.0Error
Nov 29, 2022 08:07apuxbtapuxbtCPPg++9.3.0Error
Nov 29, 2022 07:41apuxbtapuxbtCPPg++9.3.0Success653,670+6.16 RP
Nov 28, 2022 06:32apuxbtapuxbtCPPg++9.3.0Success1,169,383
Nov 28, 2022 06:31apuxbtapuxbtCPPg++9.3.0Error
Nov 28, 2022 06:27apuxbtapuxbtCPPg++9.3.0Success1,238,713
Nov 28, 2022 06:24apuxbtapuxbtCPPg++9.3.0Success1,140,158
Nov 28, 2022 06:17apuxbtapuxbtCPPg++9.3.0Success1,094,731+0.01 RP
Nov 28, 2022 06:16apuxbtapuxbtCPPg++9.3.0Error
Nov 28, 2022 06:14apuxbtapuxbtCPPg++9.3.0Success2,661,389
Nov 28, 2022 06:12apuxbtapuxbtCPPg++9.3.0Error
Nov 28, 2022 06:07apuxbtapuxbtCPPg++9.3.0Success1,096,053+7.16 RP
Nov 28, 2022 06:05apuxbtapuxbtCPPg++9.3.0Error
Nov 27, 2022 17:25apuxbtapuxbtCPPg++9.3.0Success5,088,018+0.37 RP
Nov 27, 2022 17:24apuxbtapuxbtCPPg++9.3.0Success6,275,330+1.59 RP
Nov 2, 2022 00:36Bernard TeoBernard TeoCPPg++9.3.0Success47,266
Nov 2, 2022 00:35Bernard TeoBernard TeoCPPg++9.3.0Success49,927
Nov 2, 2022 00:33Bernard TeoBernard TeoCPPg++9.3.0Error
Nov 2, 2022 00:31Bernard TeoBernard TeoCPPg++9.3.0Success47,267+3.91 RP
Nov 2, 2022 00:30Bernard TeoBernard TeoCPPg++9.3.0Success49,007
Nov 2, 2022 00:30Bernard TeoBernard TeoCPPg++9.3.0Success48,156+0.56 RP
Nov 2, 2022 00:28Bernard TeoBernard TeoCPPg++9.3.0Success48,286+12.07 RP
Nov 2, 2022 00:27Bernard TeoBernard TeoCPPg++9.3.0Success51,274+11.03 RP
Nov 2, 2022 00:25Bernard TeoBernard TeoCPPg++9.3.0Success54,443
Nov 2, 2022 00:20Bernard TeoBernard TeoCPPg++9.3.0Error
Nov 2, 2022 00:16Bernard TeoBernard TeoCPPg++9.3.0Error
Nov 2, 2022 00:02Bernard TeoBernard TeoCPPg++9.3.0Error
Nov 1, 2022 23:49Bernard TeoBernard TeoCPPg++9.3.0Error
Nov 1, 2022 23:35Bernard TeoBernard TeoCPPg++9.3.0Success56,604
Nov 1, 2022 23:33Bernard TeoBernard TeoCPPg++9.3.0Success58,129
Nov 1, 2022 23:33Bernard TeoBernard TeoCPPg++9.3.0Success55,224
Nov 1, 2022 23:28Bernard TeoBernard TeoCPPg++9.3.0Success54,349+11.08 RP
Oct 30, 2022 06:44Bernard TeoBernard TeoCPPg++9.3.0Error
Oct 30, 2022 06:42Bernard TeoBernard TeoCPPg++9.3.0Error
Oct 30, 2022 06:38Bernard TeoBernard TeoCPPg++9.3.0Error
Oct 30, 2022 06:30Bernard TeoBernard TeoCPPg++9.3.0Error
Oct 23, 2022 05:52Bernard TeoBernard TeoCPPg++9.3.0Success59,354
Oct 23, 2022 05:49Bernard TeoBernard TeoCPPg++9.3.0Success57,832+4.44 RP
Oct 23, 2022 05:39Bernard TeoBernard TeoCPPg++9.3.0Success63,546
Oct 22, 2022 22:12Kenneth MaplesKenneth MaplesCPPclang++10.0.0Success178,697
Oct 22, 2022 22:09Kenneth MaplesKenneth MaplesCPPclang++10.0.0Success176,045+1.10 RP
Oct 22, 2022 21:51Kenneth MaplesKenneth MaplesCPPclang++10.0.0Success179,813
Oct 22, 2022 21:33Kenneth MaplesKenneth MaplesCPPclang++10.0.0Success179,507+42.67 RP
Oct 13, 2022 01:10Kenneth MaplesKenneth MaplesCPPg++9.3.0Success766,797+10.64 RP
Oct 13, 2022 01:06Kenneth MaplesKenneth MaplesCPPg++9.3.0Error
Oct 13, 2022 01:04Kenneth MaplesKenneth MaplesCPPg++9.3.0Error
Oct 13, 2022 00:33Kenneth MaplesKenneth MaplesCPPg++9.3.0Success4,170,170+2.40 RP
Oct 6, 2022 01:50Sergey SlotinSergey SlotinCPPg++9.3.0Success248,323+1.63 RP
Oct 6, 2022 00:23Sergey SlotinSergey SlotinCPPg++9.3.0Success258,777+38.64 RP
Oct 4, 2022 18:36Robert BurkeRobert BurkeCPPg++9.3.0Success55,438
Oct 4, 2022 18:36Robert BurkeRobert BurkeCPPg++9.3.0Success55,387
Oct 4, 2022 18:07Robert BurkeRobert BurkeCPPg++9.3.0Success53,518+4.23 RP
Oct 4, 2022 18:05Robert BurkeRobert BurkeCPPg++9.3.0Success55,402
Oct 4, 2022 18:04Robert BurkeRobert BurkeCPPg++9.3.0Success55,410
Oct 4, 2022 18:03Robert BurkeRobert BurkeCPPg++9.3.0Error
Oct 4, 2022 16:00Robert BurkeRobert BurkeCPPg++9.3.0Success54,759+2.03 RP
Oct 4, 2022 15:57Robert BurkeRobert BurkeCPPg++9.3.0Success55,376
Oct 4, 2022 15:55Robert BurkeRobert BurkeCPPg++9.3.0Success55,408
Oct 4, 2022 15:52Robert BurkeRobert BurkeCPPg++9.3.0Success55,378
Oct 4, 2022 15:52Robert BurkeRobert BurkeCPPg++9.3.0Success55,429
Oct 4, 2022 15:51Robert BurkeRobert BurkeCPPg++9.3.0Success55,389
Oct 4, 2022 15:51Robert BurkeRobert BurkeCPPg++9.3.0Success55,385
Oct 4, 2022 15:50Robert BurkeRobert BurkeCPPg++9.3.0Success55,442
Oct 4, 2022 15:50Robert BurkeRobert BurkeCPPg++9.3.0Success55,377
Oct 4, 2022 15:49Robert BurkeRobert BurkeCPPg++9.3.0Success55,387
Oct 4, 2022 15:46Robert BurkeRobert BurkeCPPg++9.3.0Success55,395
Oct 4, 2022 15:44Robert BurkeRobert BurkeCPPg++9.3.0Success55,381
Oct 4, 2022 15:38Robert BurkeRobert BurkeCPPg++9.3.0Success55,374
Oct 4, 2022 15:36Robert BurkeRobert BurkeCPPg++9.3.0Success55,374+0.01 RP
Oct 4, 2022 15:31Robert BurkeRobert BurkeCPPg++9.3.0Success55,389
Oct 4, 2022 15:29Robert BurkeRobert BurkeCPPg++9.3.0Success55,864
Oct 4, 2022 15:29Robert BurkeRobert BurkeCPPg++9.3.0Success55,386
Oct 4, 2022 15:28Robert BurkeRobert BurkeCPPg++9.3.0Success55,883
Oct 4, 2022 15:04Robert BurkeRobert BurkeCPPclang++10.0.0Success60,546
Oct 4, 2022 15:03Robert BurkeRobert BurkeCPPclang++10.0.0Success60,106
Oct 4, 2022 15:03Robert BurkeRobert BurkeCPPclang++10.0.0Success61,401
Oct 4, 2022 15:02Robert BurkeRobert BurkeCPPclang++10.0.0Success62,733
Oct 4, 2022 15:02Robert BurkeRobert BurkeCPPclang++10.0.0Success61,417
Oct 4, 2022 15:01Robert BurkeRobert BurkeCPPclang++10.0.0Success60,375
Oct 4, 2022 12:25Robert BurkeRobert BurkeCPPg++9.3.0Success61,608
Oct 4, 2022 12:24Robert BurkeRobert BurkeCPPg++9.3.0Success60,494
Oct 4, 2022 12:24Robert BurkeRobert BurkeCPPg++9.3.0Success61,772
Oct 4, 2022 12:23Robert BurkeRobert BurkeCPPg++9.3.0Success61,646
Oct 4, 2022 12:23Robert BurkeRobert BurkeCPPg++9.3.0Success68,193
Oct 4, 2022 12:22Robert BurkeRobert BurkeCPPg++9.3.0Success55,403
Oct 4, 2022 12:22Robert BurkeRobert BurkeCPPg++9.3.0Success55,767
Oct 4, 2022 12:21Robert BurkeRobert BurkeCPPg++9.3.0Success55,421