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 listMay 6, 2024 21:52Joad NacerJoad NacerScore: 7,880Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 6, 2024 21:527,600135,063,60063,077,23402,281,472
2May 6, 2024 21:527,603138,404,44063,107,78602,273,280
3May 6, 2024 21:517,608136,838,31463,148,53002,277,376
4May 6, 2024 21:517,611132,043,53763,168,74602,277,376
5May 6, 2024 21:527,620125,784,31463,246,87302,260,992
6May 6, 2024 21:527,626139,659,89763,294,72902,273,280
7May 6, 2024 21:527,634136,810,43763,365,54102,269,184
8May 6, 2024 21:527,812123,919,67464,835,73802,273,280
9May 6, 2024 21:517,825147,415,95364,945,92102,273,280
10May 6, 2024 21:527,85788,886,26463,208,0002,006,0002,285,568
11May 6, 2024 21:527,85889,848,91964,222,0001,003,0002,285,568
12May 6, 2024 21:527,86287,653,00263,250,0002,007,0002,285,568
13May 6, 2024 21:517,86388,053,03964,259,0001,004,0002,277,376
14May 6, 2024 21:527,86788,814,93764,291,0001,004,0002,265,088
15May 6, 2024 21:527,86887,903,41463,296,0002,009,0002,285,568
16May 6, 2024 21:527,86990,146,08664,309,0001,004,0002,277,376
17May 6, 2024 21:527,87087,592,85965,320,00002,273,280
18May 6, 2024 21:517,87287,220,83564,333,0001,005,0002,285,568
19May 6, 2024 21:527,87697,976,37865,368,00002,260,992
20May 6, 2024 21:517,87788,936,80764,378,0001,005,0002,285,568
21May 6, 2024 21:517,87790,795,72864,371,0001,005,0002,273,280
22May 6, 2024 21:517,87989,337,03664,386,0001,006,0002,285,568
23May 6, 2024 21:527,88090,336,60464,400,0001,006,0002,265,088
24May 6, 2024 21:527,88187,611,61564,403,0001,006,0002,265,088
25May 6, 2024 21:527,88192,977,28764,406,0001,006,0002,285,568
26May 6, 2024 21:527,88188,138,89664,404,0001,006,0002,519,040
27May 6, 2024 21:527,88386,666,13964,419,0001,006,0002,269,184
28May 6, 2024 21:527,88688,882,89265,454,00002,269,184
29May 6, 2024 21:527,88989,674,65965,481,00002,347,008
30May 6, 2024 21:517,89891,505,73265,557,00002,260,992
31May 6, 2024 21:517,91796,554,12964,700,0001,010,0002,285,568
32May 6, 2024 21:527,96094,193,14064,068,0002,002,0002,269,184
33May 6, 2024 21:517,97394,308,88964,170,0002,005,0002,285,568
34May 6, 2024 21:518,12890,877,10366,456,0001,006,0002,371,584
35May 6, 2024 21:528,61899,449,45270,523,0001,007,0002,273,280
36May 6, 2024 21:528,77396,294,79870,823,0001,995,0002,289,664
37May 6, 2024 21:528,777101,454,43270,851,0001,995,0002,285,568
38May 6, 2024 21:528,78595,590,54670,917,0001,997,0002,285,568
39May 6, 2024 21:518,792100,614,56570,974,0001,999,0002,269,184
40May 6, 2024 21:518,79998,298,99771,032,0002,000,0002,285,568
41May 6, 2024 21:528,80899,959,63372,107,0001,001,0002,285,568
42May 6, 2024 21:528,81096,331,50671,118,0002,003,0002,260,992
43May 6, 2024 21:528,84699,859,34671,410,0002,011,0002,285,568
44May 6, 2024 21:528,855100,595,38972,487,0001,006,0002,285,568
45May 6, 2024 21:519,132101,310,10773,799,0001,994,0002,363,392