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 listDec 28, 2022 17:31Bernard TeoBernard TeoScore: 7,569Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 17:317,323124,653,48460,779,20202,277,376
2Dec 28, 2022 17:317,326129,447,78660,802,96002,273,280
3Dec 28, 2022 17:317,333128,174,60760,865,28402,273,280
4Dec 28, 2022 17:317,56591,384,94460,795,0001,993,0002,392,064
5Dec 28, 2022 17:317,56790,111,31962,803,00002,273,280
6Dec 28, 2022 17:317,56791,629,97861,808,000996,0002,273,280
7Dec 28, 2022 17:317,56890,730,67260,819,0001,994,0002,392,064
8Dec 28, 2022 17:317,56987,523,56360,829,0001,994,0002,392,064
9Dec 28, 2022 17:317,56988,678,41360,831,0001,994,0002,273,280
10Dec 28, 2022 17:317,57093,561,36861,833,000997,0002,482,176
11Dec 28, 2022 17:317,57091,935,58961,834,000997,0002,387,968
12Dec 28, 2022 17:317,57189,909,80061,843,000997,0002,273,280
13Dec 28, 2022 17:317,57194,328,64861,845,000997,0002,396,160
14Dec 28, 2022 17:317,57285,951,75460,856,0001,995,0002,506,752
15Dec 28, 2022 17:317,57487,289,04560,872,0001,995,0002,273,280