Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listJul 15, 2022 04:01Robert BurkeRobert BurkeScore: 8,212Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 15, 2022 04:018,16993,950,20665,812,0001,994,0002,277,376
2Jul 15, 2022 04:018,17192,676,83367,819,00002,428,928
3Jul 15, 2022 04:018,17294,148,73465,836,0001,995,0002,277,376
4Jul 15, 2022 04:018,17587,633,18866,859,000997,0002,277,376
5Jul 15, 2022 04:018,18092,080,14966,892,000998,0002,277,376
6Jul 15, 2022 04:018,19585,251,23166,019,0002,000,0002,506,752
7Jul 15, 2022 04:018,19689,752,63266,030,0002,000,0002,433,024
8Jul 15, 2022 04:018,20187,914,31267,069,0001,001,0002,539,520
9Jul 15, 2022 04:018,20291,871,09867,072,0001,001,0002,428,928
10Jul 15, 2022 04:018,20293,511,22967,079,0001,001,0002,277,376
11Jul 15, 2022 04:018,20495,672,33266,092,0002,002,0002,277,376
12Jul 15, 2022 04:018,20887,061,13166,123,0002,003,0002,433,024
13Jul 15, 2022 04:018,21093,008,74566,141,0002,004,0002,277,376
14Jul 15, 2022 04:018,21087,788,49867,145,0001,002,0002,277,376
15Jul 15, 2022 04:018,21196,120,06468,153,00002,424,832
16Jul 15, 2022 04:018,21291,979,60166,153,0002,004,0002,277,376
17Jul 15, 2022 04:018,21390,724,43567,166,0001,002,0002,433,024
18Jul 15, 2022 04:018,21390,309,65466,167,0002,005,0002,433,024
19Jul 15, 2022 04:018,21594,873,44267,185,0001,002,0002,539,520
20Jul 15, 2022 04:018,21789,856,80567,196,0001,002,0002,424,832
21Jul 15, 2022 04:018,21993,180,60467,212,0001,003,0002,428,928
22Jul 15, 2022 04:018,22294,030,20166,233,0002,007,0002,433,024
23Jul 15, 2022 04:018,22593,280,30267,262,0001,003,0002,277,376
24Jul 15, 2022 04:018,23197,047,77767,311,0001,004,0002,539,520
25Jul 15, 2022 04:018,899130,819,83173,860,91002,187,264
26Jul 15, 2022 04:018,916136,183,32874,000,27202,183,168
27Jul 15, 2022 04:018,921134,010,84674,043,73102,183,168
28Jul 15, 2022 04:018,934128,954,25874,150,21402,179,072
29Jul 15, 2022 04:018,936133,514,98774,172,94802,174,976
30Jul 15, 2022 04:019,036141,435,04574,996,53502,183,168