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.

Back to listJun 6, 2021 22:05Yuriy LyfenkoYuriy LyfenkoScore: 137,629Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2021 22:02132,4641,172,977,727649,074,00002,506,752
2Jun 9, 2021 21:22132,4901,176,644,895648,200,0001,000,0002,510,848
3Jun 6, 2021 23:00133,0001,176,377,208649,703,0001,999,0002,510,848
4Jun 6, 2021 22:05133,2041,178,172,312650,703,0001,999,0002,506,752
5Jun 6, 2021 22:13133,6021,184,878,623653,650,000999,0002,371,584
6Jun 6, 2021 22:05133,6981,177,114,698655,119,00002,506,752
7Jun 6, 2021 22:02133,9771,186,588,695654,490,0001,998,0002,506,752
8Jun 6, 2021 22:05134,2211,182,394,179653,687,0003,998,0002,371,584
9Jun 6, 2021 22:05134,4391,187,165,364656,750,0001,999,0002,506,752
10Jun 6, 2021 22:02134,4411,183,129,115656,761,0001,999,0002,506,752
11Jun 6, 2021 22:05134,6181,184,126,781657,632,0001,998,0002,506,752
12Jun 9, 2021 21:22134,6681,185,317,486657,876,0001,999,0002,510,848
13Jun 6, 2021 22:05134,7481,191,914,964659,264,0001,000,0002,506,752
14Jun 9, 2021 21:22134,7861,187,690,890660,450,00002,514,944
15Jun 6, 2021 22:13134,8391,186,329,629659,713,000999,0002,506,752
16Jun 6, 2021 23:00134,9031,190,960,141661,026,00002,510,848
17Jun 6, 2021 22:02135,0561,190,872,651659,773,0001,999,0002,510,848
18Jun 6, 2021 22:02135,1391,188,061,885662,181,00002,506,752
19Jun 6, 2021 23:00135,2631,189,063,864660,790,0001,999,0002,510,848
20Jun 6, 2021 22:13135,3021,188,728,681660,980,0001,999,0002,367,488
21Jun 6, 2021 23:00135,4221,193,354,679661,568,0001,998,0002,367,488
22Jun 6, 2021 22:05135,4601,184,341,565661,754,0001,999,0002,510,848
23Jun 6, 2021 23:00135,4721,192,362,799661,813,0001,999,0002,363,392
24Jun 6, 2021 22:02135,6421,192,788,456663,648,000999,0002,514,944
25Jun 6, 2021 22:13135,6441,190,192,423662,657,0001,998,0002,514,944
26Jun 6, 2021 22:13135,8191,195,187,983663,513,0001,998,0002,506,752
27Jun 6, 2021 22:05135,9011,192,503,690664,917,000999,0002,367,488
28Jun 6, 2021 22:02135,9311,193,330,710665,064,0001,000,0002,510,848
29Jun 9, 2021 21:22136,2171,193,087,877666,463,000999,0002,510,848
30Jun 6, 2021 22:05136,7171,203,132,954667,913,0001,999,0002,510,848
31Jun 9, 2021 21:22136,8211,195,892,211668,426,0001,998,0002,510,848
32Jun 6, 2021 22:02136,8941,198,234,808668,781,0001,999,0002,510,848
33Jun 6, 2021 22:05137,0461,195,800,584670,527,000999,0002,506,752
34Jun 6, 2021 22:05137,2441,197,428,710670,500,0001,998,0002,510,848
35Jun 6, 2021 22:05137,2571,198,993,660670,560,0001,998,0002,510,848
36Jun 6, 2021 22:05137,3601,204,619,293672,063,0001,000,0002,514,944
37Jun 6, 2021 22:05137,6291,202,861,737673,385,000999,0002,506,752
38Jun 6, 2021 22:02137,9911,200,460,560675,156,0001,000,0002,371,584
39Jun 6, 2021 23:00138,0401,205,228,897675,397,000999,0002,506,752
40Jun 6, 2021 22:05138,0831,208,535,501675,607,000999,0002,514,944
41Jun 6, 2021 22:05139,1951,207,233,470682,055,00002,371,584
42Jun 6, 2021 23:00139,2121,208,328,233681,139,0001,000,0002,506,752
43Jun 9, 2021 21:22139,2781,211,549,147681,462,000999,0002,510,848
44Jun 6, 2021 22:05139,2871,211,221,784681,508,000999,0002,375,680
45Jun 6, 2021 22:05139,3691,206,529,235680,911,0001,999,0002,379,776
46Jun 6, 2021 23:00139,8881,216,049,958683,452,0001,998,0002,514,944
47Jun 6, 2021 22:13140,0381,214,698,129685,186,0001,000,0002,506,752
48Jun 6, 2021 22:13141,5591,218,960,180691,639,0001,998,0002,510,848
49Jun 9, 2021 21:22142,3041,220,354,308696,290,000998,0002,510,848
50Jun 6, 2021 23:00142,3971,223,753,363696,744,000999,0002,510,848
51Jun 6, 2021 22:13142,9331,229,696,163699,373,000999,0002,375,680
52Jun 9, 2021 21:22143,8931,227,465,337705,075,00002,510,848
53Jun 6, 2021 22:13144,7721,238,916,744708,383,000999,0002,506,752
54Jun 9, 2021 21:22147,3841,253,893,258722,180,00002,506,752
55Jun 6, 2021 22:02150,5901,301,808,787737,889,01902,228,224
56Jun 6, 2021 22:05150,7591,299,105,947738,721,30002,211,840
57Jun 6, 2021 22:05151,1511,305,631,737740,640,89202,220,032
58Jun 6, 2021 22:05151,4661,298,075,903742,183,98602,224,128
59Jun 6, 2021 22:13152,0221,300,452,562744,905,89902,236,416
60Jun 9, 2021 21:22152,2421,310,409,463745,987,80702,228,224
61Jun 6, 2021 22:05152,6831,313,571,721748,145,26002,220,032
62Jun 6, 2021 23:00152,9031,302,733,755749,223,09202,224,128
63Jun 6, 2021 22:13153,0611,310,740,851750,000,08002,228,224
64Jun 6, 2021 22:05153,1771,308,956,057750,567,34902,228,224
65Jun 9, 2021 21:22153,5251,323,260,714752,272,01402,224,128
66Jun 6, 2021 23:00153,5361,329,829,447752,324,39202,224,128
67Jun 6, 2021 22:02153,6231,344,272,133752,752,76502,244,608
68Jun 9, 2021 21:22154,1741,324,364,591755,453,71802,224,128
69Jun 6, 2021 22:05155,8461,336,465,947763,643,14602,232,320
70Jun 6, 2021 23:00156,7291,346,419,233767,971,74202,224,128
71Jun 6, 2021 22:13158,6091,343,520,673777,182,93702,224,128
72Jun 6, 2021 22:02161,1851,356,321,667789,805,61002,228,224