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 16:42Bernard TeoBernard TeoScore: 6,143Success
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 16:426,13175,867,87848,892,0001,995,0002,273,280
2Dec 28, 2022 16:426,13675,877,67449,931,000998,0002,269,184
3Dec 28, 2022 16:426,13674,883,48448,933,0001,997,0002,273,280
4Dec 28, 2022 16:426,13879,502,72949,946,000998,0002,273,280
5Dec 28, 2022 16:426,13873,290,51648,949,0001,997,0002,396,160
6Dec 28, 2022 16:426,13872,056,24248,948,0001,997,0002,273,280
7Dec 28, 2022 16:426,13974,631,95849,955,000999,0002,273,280
8Dec 28, 2022 16:426,13973,865,74348,957,0001,998,0002,396,160
9Dec 28, 2022 16:426,14078,965,20248,960,0001,998,0002,392,064
10Dec 28, 2022 16:426,14076,793,34348,960,0001,998,0002,273,280
11Dec 28, 2022 16:426,14179,654,98448,974,0001,998,0002,510,848
12Dec 28, 2022 16:426,14277,125,96948,979,0001,999,0002,396,160
13Dec 28, 2022 16:426,14277,551,83849,980,000999,0002,400,256
14Dec 28, 2022 16:426,14372,415,28648,986,0001,999,0002,404,352
15Dec 28, 2022 16:426,14379,008,95848,986,0001,999,0002,408,448
16Dec 28, 2022 16:426,14376,743,49949,988,000999,0002,392,064
17Dec 28, 2022 16:426,14473,308,59448,995,0001,999,0002,273,280
18Dec 28, 2022 16:426,14671,535,17949,011,0002,000,0002,273,280
19Dec 28, 2022 16:426,14774,259,82749,024,0002,000,0002,273,280
20Dec 28, 2022 16:426,14776,956,87849,018,0002,000,0002,273,280
21Dec 28, 2022 16:426,14879,084,95650,031,0001,000,0002,273,280
22Dec 28, 2022 16:426,14973,049,88450,036,0001,000,0002,273,280
23Dec 28, 2022 16:426,15172,737,41849,053,0002,002,0002,387,968
24Dec 28, 2022 16:426,16176,336,46949,134,0002,005,0002,273,280
25Dec 28, 2022 16:426,281109,344,98352,131,19102,277,376
26Dec 28, 2022 16:426,282119,429,17652,136,73602,285,568
27Dec 28, 2022 16:426,288105,584,49552,186,65702,289,664
28Dec 28, 2022 16:426,290124,723,52452,207,05202,277,376
29Dec 28, 2022 16:426,292127,787,37952,221,68702,277,376
30Dec 28, 2022 16:426,302115,987,22052,307,94702,277,376